01 package com.bea.medrec.actions;
02
03 import javax.servlet.http.HttpServletRequest;
04 import javax.servlet.http.HttpServletResponse;
05 import org.apache.struts.action.ActionForm;
06 import org.apache.struts.action.ActionForward;
07 import org.apache.struts.action.ActionMapping;
08
09 /**
10 * <p>Controller to view patient profile.</p>
11 *
12 * @author Copyright (c) 2006 by BEA Systems. All Rights Reserved.
13 */
14 public class ViewProfileAction extends PatientBaseAction {
15
16 /**
17 * <p>Process the specified HTTP request, and create the corresponding HTTP
18 * response (or forward to another web component that will create it).
19 * Return an <code>ActionForward</code> instance describing where and how
20 * control should be forwarded.
21 * <br>
22 * Redirects to profile view where values are retrieved from the session.
23 * </p>
24 *
25 * @param mapping The ActionMapping used to select this instance
26 * @param form The optional ActionForm bean for this request (if any)
27 * @param request The HTTP request we are processing
28 * @param response The HTTP response we are creating
29 */
30 public ActionForward executeAction(ActionMapping mapping,
31 ActionForm form,
32 HttpServletRequest request,
33 HttpServletResponse response)
34 throws Exception {
35 return mapping.findForward("view.profile");
36 }
37 }
|