title: Intercepting and changing request url Using Stripes framework
body: <p>I am facing problem in intercepting and changing request url to link it with correct URL.
  I am using stripes framework, and want to redirect user to their correct subdomain. 
  For eg. if user belongs to abc.sitename.com and request came from xyz.sitename.com he should be redirected to abc.sitename.com with all request post. 
  For getparameter i have done this by simply getting request url and request query and redirecting user from custom intercept class before lifecycle resolution execution. But all post parameter are flushed as it is redirect.
  Another solution was to forward resolution, but it can take user within context and i need to override it as: </p>
  
  <pre><code>resolution = new OnwardResolution&lt;ForwardResolution&gt;(reponseUrl) {
                      @Override
                      public void execute(HttpServletRequest request,
                              HttpServletResponse response) throws Exception {
                          request = ctx.getRequest();
                          response = ctx.getResponse();
                          String path = reponseUrl; //getUrl(request.getLocale());
                          // Set event name as a request attribute
                          String oldEvent = (String) request.getAttribute(StripesConstants.REQ_ATTR_EVENT_NAME);
                          //request.setAttribute(StripesConstants.REQ_ATTR_EVENT_NAME, event);
                          log.info("check: {}", path);
                          // Revert event name to its original value
                          request.setAttribute(StripesConstants.REQ_ATTR_EVENT_NAME, oldEvent);
                          // Figure out if we're inside an include, and use an include instead of a forward
                          RequestDispatcher dispatcher = request.getRequestDispatcher(path);
                          //request.getRequestDispatcher(path).forward(request, response);
                          dispatcher.forward(request, response);
  
                      }
                  };
  </code></pre>
  
  <p>But it is calling in application context path, whereas it should call the complete url.
  Another solution, If I use redirect resolution and set includerequest parameter true will do the job, but put all request parameter into url which makes it unacceptable.</p>
  
  <p>Request url should be changed before resolution executuion as after it it will be of no use, I have tried it. is there any way to set request url in HTTPServeletRequest. </p>
  
  <p>I have also tried to intercept during ActionBeanResolution, It is the best place to do such activity. My main problem is POST parameters. I can not redirect (as they get flushed or if use include reuest parameter they are visible in URL). Forward resolution on forward in context. If there is a way to forward it to new URL it will do the job.</p>
  
  <p>Thanks in advance.</p>