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 Java 1.4's getRequestURL() returns '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. Thank you very much for your kind help. Ale On Tue, Jul 31, 2012 at 10:55 AM, André Warnier <a...@ice-sa.com> wrote: > Alejandro Mehring wrote: > ... > > >> The base url of the application is of the form >> >> http://host/app/servlets/**FrontController<http://host/app/servlets/FrontController> >> >> So when in Tomcat 4 the page fetches the stylesheet (using the >> href="../lightStyle.css" form), it resolves to >> http://host/app/lightStyle.css**, whereas in Tomcat 7 it goes to >> http://host/app/servlets/**lightStyle.css<http://host/app/servlets/lightStyle.css> >> . >> > > How do you *know* this ? > Are you watching what the browser really sends as a HTTP request URL, and > if yes how ? > > > >> Here's the output of the JSP (the header part) for both 4 and 7 version. >> >> > Can you also paste the content of the real JSP page which generates the > output you showed below ? Is that JSP page *exactly* the same for the > Tomcats 4 and 7 servers ? > > > TOMCAT 4 >> ======== >> >> <html> >> <style type="text/css"> >> @import URL("../lightStyle.css") >> </style> >> <head> >> <!--meta http-equiv=Content-Type content="text/html; >> charset=windows-1252"--> >> <meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> >> <meta http-equiv="Expires" content="0"> >> <meta http-equiv="Pragma" content="no-cache"> >> <meta http-equiv="cache-control" content="no-cache"> >> <title>Consulta de usuarios</title> >> <link rel="stylesheet" href="../lightStyle.css" type="text/css"> >> ... >> </head> >> ... >> >> >> >> TOMCAT 7 >> ======== >> <HTML> >> <style type="text/css"> >> @import URL("lightStyle.css") >> </style> >> <head> >> <title>Error</title> >> <link rel="stylesheet" href="lightStyle.css" type="text/css"> >> <meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> >> <meta http-equiv="Expires" content="0"> >> <meta http-equiv="Pragma" content="no-cache"> >> <meta http-equiv="cache-control" content="no-cache"> >> ... >> </head> >> ... >> > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > users-unsubscribe@tomcat.**apache.org<users-unsubscr...@tomcat.apache.org> > For additional commands, e-mail: users-h...@tomcat.apache.org > >