This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Problems migrating to Tomcat 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problems migrating to Tomcat 7" Watch "Problems migrating to Tomcat 7" New topic

Problems migrating to Tomcat 7

Alejandro Mehring

Joined: Jul 30, 2012
Posts: 1
Hi all!!

I'm migrating to Tomcat 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

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:

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!!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17257

We need more context. Tomcat doesn't render pages. The closest it comes is code generated by the JSP 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.

An IDE is no substitute for an Intelligent Developer.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Problems migrating to Tomcat 7
It's not a secret anymore!