View Javadoc

1   /*
2    * Created on 2004/11/10
3    */
4   package org.ieee.shinobu.demo.velocity.chris;
5   
6   import javax.servlet.http.HttpServletRequest;
7   import javax.servlet.http.HttpServletResponse;
8   
9   import org.apache.struts.action.Action;
10  import org.apache.struts.action.ActionForm;
11  import org.apache.struts.action.ActionForward;
12  import org.apache.struts.action.ActionMapping;
13  
14  /***
15   * @author shinobu
16   */
17  public class RightMenuAction extends Action {
18  
19      public ActionForward execute(ActionMapping mapping, ActionForm form,
20              HttpServletRequest request, HttpServletResponse response) throws Exception {
21          request.setAttribute("chris", "Right!");
22          return mapping.findForward("success");
23      }
24      
25  }