This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
    Bookmark Topic Watch Topic
  • New Topic

Forcing Tomcat to see css/image files

 
David McCombs
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am using a server configuration that uses both Apache and Tomcat with Apache using mod_jk to communicate with Tomcat.

The problem is that I have a JSP page under ROOT, using a path to images and css, /img and /css respectively. The only way the JSP page can see those files is if it is under httpdocs.

I am also running some php programs.

My hosts tech support says that they can remap Tomcat to see css and image files in Tomcat, but that will negatively affect my php programs. This seems wrong to me that parts of a web page have to be in a completely different directory.

Is there a way I can force my jsp file to look in its current directory for the image and css paths?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64980
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Refer to the post in the JSP forum.
 
    Bookmark Topic Watch Topic
  • New Topic