You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Niall Pemberton <ni...@gmail.com> on 2007/04/19 08:05:54 UTC

Re: How to get original query string after more than two forwards

Please ask these types of questions on the Struts User list:

http://struts.apache.org/mail.html

Thanks

Niall

On 4/19/07, Deep Blue Li <de...@gmail.com> wrote:
> Hi,
>
> I'm currently using an app. server that is using servlet 2.4. I cannot get
> the original query string after doing more than two request forward.
>
> Here is the scenario:
> 1. Enter the URL in the browser : http://xxx/xxx.do?search=abc
> 2. Go to validator, validation failed
> 3. Validator forwards the request to "xxx.do"  (first forward)
> 4. Inside xxx.do action, I can still get the query string from
> request.getAttribute ("javax.servlet.forward.query_string")
> 5. xxx.do forward to xxx.jsp (second forward)
> 6. I couldn't get back the query string "search=abc" in xxx.jsp
>
> I have tried using both request.getAttribute ("
> javax.servlet.forward.query_string")  and request.getQueryString() in step
> 6, but both are not working.
>
> Any kind sould can help me?
>
> Thanks!
>
> Regards,
> Guang Sheng
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org