You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Laura <la...@libero.it> on 2002/05/07 12:52:53 UTC

Urgent send redirect

Hi all,

I have a problem and I don't know whre is the cause.

My context is /xxx: in this context I have a servlet. This servlet takesas 
parametr an url in IP form (nn1.nn2.nn3.nn4).
At the end of the servlet I do:

response.sendRedirect(response.encodeRedirectURL(url + "?" + querystring));

If the url parameter,passed to my servlet is nn1.nn2.nn3.nn4, the browser of 
the user is redirected to


http://myserver/xxx/nn1.nn2.nn3.nn4?querystring

But I want:

http://nn1.nn2.nn3.nn4?querystring


Where is my problem?

Please help me.



Thanks

Laura

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>