You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by PDiefent <pd...@csc.com> on 2010/08/05 16:01:07 UTC

Problem with CSS in HTML

Hello,
My first test of the new Tomcat 7.0.0 release endet with following problem:
In my HTML page I'm using a stylesheet:
<link rel="stylesheet" type="text/css" href="styles/tabStyles.css"></link>
This works fine with Tomcat 5 and Tomcat 6!
Tomcat 7 changes the link when the page is shown in the browser:
<link rel="stylesheet" type="text/css"
href="../styles/tabStyles.css"></link>

How can I avoid this?

Thanks, Peter
-- 
View this message in context: http://old.nabble.com/Problem-with-CSS-in-HTML-tp29356352p29356352.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Problem with CSS in HTML

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter,

On 8/5/2010 10:01 AM, PDiefent wrote:
> My first test of the new Tomcat 7.0.0 release endet with following problem:
> In my HTML page I'm using a stylesheet:
> <link rel="stylesheet" type="text/css" href="styles/tabStyles.css"></link>
> This works fine with Tomcat 5 and Tomcat 6!
> Tomcat 7 changes the link when the page is shown in the browser:
> <link rel="stylesheet" type="text/css"
> href="../styles/tabStyles.css"></link>
> 
> How can I avoid this?

Show us the code that emits your <link> element and we can take a look.
As Andre points out, Tomcat will not rewrite your content unless you ask
it to do so.

Also, are you using Tomcat directly, or do you have another web server
(like Apache httpd), proxy, or load-balancer between the client and Tomcat?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxa4AgACgkQ9CaO5/Lv0PCGgwCfQ50guJUe6mE37yeJGQxsroT2
OsoAnj25YAQKR521qiyUcfXNw9xPiCpt
=Z70w
-----END PGP SIGNATURE-----

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


Re: Problem with CSS in HTML

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pid,

On 8/6/2010 6:24 AM, Pid wrote:
> On 06/08/2010 11:16, PDiefent wrote:
>>
>> Well, it works fine for Tomcat 5 and Tomcat 6 but fails on Tomcat 7. There
>> are no changes to my application so I thought it would relate to Tomcat 7
>> changes.
>> I use Tomcat 7.0.0 with Java 6.
> 
> Tomcat 7.0 is still in beta, it's possible that there is an issue but
> the information you've provided so far doesn't tell us anything useful
> about the problem.

+1

Peter, which servlet is serving the XML document you posted?
DefaultServlet? JspServlet? Do you have any filters installed?

I'll repeat my previous question, too:
> Also, are you using Tomcat directly, or do you have another web server
> (like Apache httpd), proxy, or load-balancer between the client and Tomcat?

You're not giving us much to go on.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxcGCMACgkQ9CaO5/Lv0PBGFgCgktZbiVAeXkGUsECz5ylGgrlv
/jkAoKQku5Hu8kZIFgOrkcj/58t6gLMf
=eDPH
-----END PGP SIGNATURE-----

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


Re: Problem with CSS in HTML

Posted by Pid <pi...@pidster.com>.
On 06/08/2010 11:16, PDiefent wrote:
> 
> Well, it works fine for Tomcat 5 and Tomcat 6 but fails on Tomcat 7. There
> are no changes to my application so I thought it would relate to Tomcat 7
> changes.
> I use Tomcat 7.0.0 with Java 6.

Tomcat 7.0 is still in beta, it's possible that there is an issue but
the information you've provided so far doesn't tell us anything useful
about the problem.

At this point you'd be better seeking help in the Wicket community and
if they are able to determine there's an actual problem with Tomcat,
rather than just assuming there is, head back here with the details.


p


Re: Problem with CSS in HTML

Posted by PDiefent <pd...@csc.com>.
Well, it works fine for Tomcat 5 and Tomcat 6 but fails on Tomcat 7. There
are no changes to my application so I thought it would relate to Tomcat 7
changes.
I use Tomcat 7.0.0 with Java 6.

-- 
View this message in context: http://old.nabble.com/Problem-with-CSS-in-HTML-tp29356352p29356434.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Problem with CSS in HTML

Posted by André Warnier <aw...@ice-sa.com>.
PDiefent wrote:
> I'm using the Wicket Framework with this HTML:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"
> xml:lang="en" lang="en">
> <head>
> 	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"></meta>
> 	<meta http-equiv="cache-control" content="no-cache,no-store"></meta>
> 	<meta http-equiv="pragma" content="no-cache,no-store"></meta>
> 	<meta http-equiv="expires" content="-1"></meta>
> 	<title>WicketTest</title>
> 	<link rel="stylesheet" type="text/css" href="styles/tabStyles.css"></link>
> </head>
> 
> <body>
> 	<div wicket:id="tabs" class="tabpanel" >[tab panel]</div>
> </body>
> </html>
> 
> If I view the source code of the page displayed by the browser, it shows:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"
> xml:lang="en" lang="en">
> <head>
> 	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"></meta>
> 	<meta http-equiv="cache-control" content="no-cache,no-store"></meta>
> 	<meta http-equiv="pragma" content="no-cache,no-store"></meta>
> 	<meta http-equiv="expires" content="-1"></meta>
> 	<title>WicketTest</title>
> 	<link rel="stylesheet" type="text/css"
> href="../styles/tabStyles.css"></link>
> </head>
> 
> <body>
> 	<div wicket:id="tabs" class="tabpanel"><wicket:panel>
> <div wicket:id="tabs-container" class="tab-row">
> ...

Yes, and ?

Would you mind explaining how this may be related to Tomcat ?
And if it is, which version of Tomcat, Java etc.. ?


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


Re: Problem with CSS in HTML

Posted by PDiefent <pd...@csc.com>.
I'm using the Wicket Framework with this HTML:

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"
xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"></meta>
	<meta http-equiv="cache-control" content="no-cache,no-store"></meta>
	<meta http-equiv="pragma" content="no-cache,no-store"></meta>
	<meta http-equiv="expires" content="-1"></meta>
	<title>WicketTest</title>
	<link rel="stylesheet" type="text/css" href="styles/tabStyles.css"></link>
</head>

<body>
	<div wicket:id="tabs" class="tabpanel" >[tab panel]</div>
</body>
</html>

If I view the source code of the page displayed by the browser, it shows:

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"
xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"></meta>
	<meta http-equiv="cache-control" content="no-cache,no-store"></meta>
	<meta http-equiv="pragma" content="no-cache,no-store"></meta>
	<meta http-equiv="expires" content="-1"></meta>
	<title>WicketTest</title>
	<link rel="stylesheet" type="text/css"
href="../styles/tabStyles.css"></link>
</head>

<body>
	<div wicket:id="tabs" class="tabpanel"><wicket:panel>
<div wicket:id="tabs-container" class="tab-row">
...
-- 
View this message in context: http://old.nabble.com/Problem-with-CSS-in-HTML-tp29356352p29356426.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Problem with CSS in HTML

Posted by André Warnier <aw...@ice-sa.com>.
PDiefent wrote:
> Hello,
> My first test of the new Tomcat 7.0.0 release endet with following problem:
> In my HTML page I'm using a stylesheet:
> <link rel="stylesheet" type="text/css" href="styles/tabStyles.css"></link>
> This works fine with Tomcat 5 and Tomcat 6!
> Tomcat 7 changes the link when the page is shown in the browser:
> <link rel="stylesheet" type="text/css"
> href="../styles/tabStyles.css"></link>
> 
> How can I avoid this?
> 
It is very, very unlikely that Tomcat is changing the content of a html page.
What is this, a static page ?


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