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