1 23 24 27 package com.hutchison.at.webui.admin.struts.action; 28 29 import org.apache.struts.action.Action; 30 import org.apache.struts.action.ActionForm; 31 import org.apache.struts.action.ActionForward; 32 import org.apache.struts.action.ActionMapping; 33 34 import javax.servlet.http.HttpServletRequest ; 35 import javax.servlet.http.HttpServletResponse ; 36 37 38 39 44 public class ForwardToUrlAction extends Action { 45 57 public ActionForward onExecute(ActionMapping mapping, 58 ActionForm form, 59 HttpServletRequest request, 60 HttpServletResponse response) 61 throws Exception { 62 String forward = request.getParameter("forward"); 63 64 return new ActionForward(forward); 65 } 66 } 67 | Popular Tags |