tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Campbell <chris.campb...@lincmedia.co.jp>
Subject RE: Urgent send redirect
Date Tue, 07 May 2002 11:16:55 GMT

You could try just:

response.sendRedirect("http://" + url + "?" + querystring);

ChrisC

> -----Original Message-----
> From: Laura [mailto:lauradiara@libero.it]
> Sent: Tuesday, May 07, 2002 7:53 PM
> To: tomcat-user@jakarta.apache.org
> Subject: 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:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message