1 package test.web;2 3 import javax.servlet.http.HttpServletRequest ;4 import javax.servlet.http.HttpServletResponse ;5 6 import org.apache.struts.action.Action;7 import org.apache.struts.action.ActionForm;8 import org.apache.struts.action.ActionForward;9 import org.apache.struts.action.ActionMapping;10 11 /**12 * Simple class to test Jakarta Struts generation (Jakarta Struts 1.2 beta 2 only).13 *14 * @struts.action15 * path="/struts/foo"16 *17 * @struts.action-forward18 * name="success"19 * path="/struts/getAll.do"20 * redirect="false"21 */22 public final class StrutsAction extends Action23 {24 public ActionForward execute(ActionMapping mapping, ActionForm form,25 HttpServletRequest request, HttpServletResponse response)26 {27 return mapping.findForward("success");28 }29 }