tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Problems upgrading to Tomcat 7
Date Tue, 31 Jul 2012 13:55:33 GMT
Alejandro Mehring wrote:
...

> 
> The base url of the application is of the form
> 
> 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.

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
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message