I'm very sorry! I forgot to mention that i tried what he suggested, but got the same result. That's why I started digging more into it and got to that point and what helped me find this other issue.
Thanks again! Ale On Tue, Jul 31, 2012 at 11:31 AM, André Warnier <a...@ice-sa.com> wrote: > Alejandro Mehring wrote: > >> Thank you very much for your help! >> >> Digging a bit more into the system, I came to a part where it's building >> the link based on the original servlet request. >> >> If I have this URL: >> http://host/app/servlet/**FrontController?arg1=yes&arg2=** >> target.jsp&arg3=something<http://host/app/servlet/FrontController?arg1=yes&arg2=target.jsp&arg3=something> >> >> Java 1.4's getRequestURL() returns 'http://host/app/servlet/** >> FrontController <http://host/app/servlet/FrontController>' >> whereas >> Java 1.6's getRequestURL() returns 'http://host/app/target.jsp' >> >> I found someone reporting this same issue on JBoss community page, but got >> no answer. I'll try to find another way to get the same behaviour in Java >> 1.6 as of getRequestURL in 1.4. >> >> > Now you seem to be on the right path. > On the other hand, you seem to be strangely ignoring every bit of advice > that people are trying to give you, for example what Christopher suggested > in his earlier message, and which i will repeat here : > > quote > > > Although this should work, I always recommend using context-relative > URLs like this: > > <link type="text/css" href="<%= > response.encodeURL(request.**getContextPath() + "/lightStyle.css") %>" /> > > This will ensure that your URLs resolve properly no matter how the > .jsp is being evaluated (for instance, in an include or after a > forward, where the client's URL may not match what your JSP expects). > > unquote > > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > users-unsubscribe@tomcat.**apache.org<users-unsubscr...@tomcat.apache.org> > For additional commands, e-mail: users-h...@tomcat.apache.org > >