A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Problems migrating to Tomcat 7
Joined: Jul 30, 2012
Jul 30, 2012 16:04:14
I'm migrating to
7 a web system that used to run on Tomcat 4...
So far, I've been able to sort out all of the issues I've faced, but I'm stuck at one point. When a page loads in Tomcat 4, it goes and fetches the stylesheet from the server with a link of the form
<link type="text/css" href="../lightStyle.css" rel="stylesheet">
But on Tomcat 7, the parent directory indirection is removed, and I can't seem to find the way to prevent this from happening!
What confuses me more, is that when Tomcat generates the
files, both 4 and 7 versions generate a line of code like this one:
out.write("<link rel=\"stylesheet\" href=\"../lightStyle.css\" type=\"text/css\">\r\n\r\n");
So i can't figure out why the rendering process is removing the '../' bit of the link!
Has anyone faced this problem before? I haven't found any parent directory restriction configuration or something that would point me in that direction.
Thanks for your time and help!!
Joined: Jun 25, 2001
Jul 31, 2012 04:50:20
We need more context. Tomcat doesn't render pages. The closest it comes is code generated by the
compiler (jasper), and you seem to be saying that there's no problem with that.
If you're working with some other framework that does generate code, such as Struts, we need to know what it is.
Customer surveys are for companies who didn't pay proper attention to begin with.
subject: Problems migrating to Tomcat 7
How to load themes dynamically?
Lost CSS using Facelets + JSF
CSS external file
How to get Cascading Style Sheets with JSP/Tomcat Working?
Servlet css file location
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014