You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Lucio Ribeiro <lu...@yahoo.com.br> on 2006/01/27 13:09:36 UTC

new versions of Tomcat

Hi, I'm new here i'm having problems with new versions of Tomcat.
 
 I was using tomcat 5.0.27 and i have a web application made in Java. My code has to get URL using the following code:
 
 String url = request.getRequestURL().toString();
 
 I use Struts and my URL is http://localhost:8080/terp/list.client.do?metodo=insert.
 The code above returned the string "http://localhost:8080/terp/list.client.do?metodo=insert". That's what i want.
 
 When i updated tomcat (I tested with tomcat 5.5.9 and 5.5.15), the code did not work anymore. The code now is returning the path of the page like "http://localhost:7070/terp/WEB-INF/templates/client/ListClient.vm".
 
 And now?? what can i do to solve this???? How can i get the correct URL???
 
 Thanks and I'm waiting for your answer.
 
 

		
---------------------------------
 Yahoo! doce lar. Faça do Yahoo! sua homepage.

Re: new versions of Tomcat

Posted by Mark Thomas <ma...@apache.org>.
Lucio Ribeiro wrote:
> Hi, I'm new here i'm having problems with new versions of Tomcat.
>  
>  I was using tomcat 5.0.27 and i have a web application made in Java. My code has to get URL using the following code:
>  
>  String url = request.getRequestURL().toString();
>  
>  I use Struts and my URL is http://localhost:8080/terp/list.client.do?metodo=insert.
>  The code above returned the string "http://localhost:8080/terp/list.client.do?metodo=insert". That's what i want.
>  
>  When i updated tomcat (I tested with tomcat 5.5.9 and 5.5.15), the code did not work anymore. The code now is returning the path of the page like "http://localhost:7070/terp/WEB-INF/templates/client/ListClient.vm".
>  
>  And now?? what can i do to solve this???? How can i get the correct URL???
>  
>  Thanks and I'm waiting for your answer.

This question belongs on the users list where I will be happy to
answer it for you.

Mark


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