1 18 19 20 package org.apache.struts.webapp.exercise; 21 22 23 import javax.servlet.http.HttpServletRequest ; 24 import javax.servlet.http.HttpServletResponse ; 25 import org.apache.struts.action.Action; 26 import org.apache.struts.action.ActionForm; 27 import org.apache.struts.action.ActionForward; 28 import org.apache.struts.action.ActionMapping; 29 30 31 38 39 public class HtmlSettersAction extends Action { 40 41 42 53 public ActionForward execute(ActionMapping mapping, 54 ActionForm form, 55 HttpServletRequest request, 56 HttpServletResponse response) 57 throws Exception { 58 59 if (isCancelled(request)) 60 return (mapping.findForward("redirect-default")); 61 else 62 return (mapping.findForward("input")); 63 64 } 65 66 67 } 68 | Popular Tags |