1 package test.web;2 3 import javax.servlet.http.HttpServletRequest ;4 import javax.servlet.http.HttpServletResponse ;5 6 import org.apache.struts.actions.DispatchAction;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/bar"16 *17 * @struts.action-forward18 * name="success"19 * path="/struts/getAll.do"20 * redirect="false"21 *22 */23 public final class StrutsDispatchAction extends DispatchAction24 {25 public ActionForward execute(ActionMapping mapping, ActionForm form,26 HttpServletRequest request, HttpServletResponse response)27 {28 return mapping.findForward("success");29 }30 }31