HomeAction.java
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  * Handles user profile requests- viewing and editing.
12  *
13  @author Copyright (c) 2006 by BEA Systems. All Rights Reserved.
14  */
15 public class HomeAction extends AdminBaseAction {
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.</p>
22   *
23   @param mapping  The ActionMapping used to select this instance
24   @param form  The optional ActionForm bean for this request (if any)
25   @param request  The HTTP request we are processing
26   @param response  The HTTP response we are creating
27   */
28   public ActionForward executeAction(ActionMapping mapping,
29                                      ActionForm form,
30                                      HttpServletRequest request,
31                                      HttpServletResponse response)
32     throws ClientException, Exception
33   {
34     // Redirect to home view.
35     return mapping.findForward("home");
36   }
37 }