1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kns.web.struts.action;
17
18 import org.apache.struts.action.Action;
19 import org.apache.struts.action.ActionForm;
20 import org.apache.struts.action.ActionForward;
21 import org.apache.struts.action.ActionMapping;
22
23 import javax.servlet.http.HttpServletRequest;
24 import javax.servlet.http.HttpServletResponse;
25
26
27
28
29
30 public class ForwardWithQueryParametersAction extends Action {
31
32 public ActionForward execute(
33 ActionMapping mapping,
34 ActionForm form,
35 HttpServletRequest request,
36 HttpServletResponse response)
37 throws Exception {
38
39 String path = mapping.getParameter();
40 if (request.getQueryString() != null) {
41 path = path + "?" + request.getQueryString();
42 }
43 ActionForward retVal = new ActionForward(path);
44 retVal.setModule("");
45
46 return retVal;
47 }
48
49 }