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 is a result of fixing bug 28222
(http://issues.apache.org/bugzilla/show_bug.cgi?id=28222). Older
versions of Tomcat were not compliant with section SRV.8.4 of the
servlet specification. The behaviour you now see is spec compliant.

There have been a few other reports related to this change. For example:
http://issues.apache.org/bugzilla/show_bug.cgi?id=35425

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to