It's not a secret anymore!
The moose likes Tomcat and the fly likes Question about tomcat configuration... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Question about tomcat configuration..." Watch "Question about tomcat configuration..." New topic

Question about tomcat configuration...

jonathan ford

Joined: Feb 16, 2008
Posts: 4
my tomcat path on server is: /home/peter/tomcat
my files path is: /archive/repository/data/
my web program located in: /home/peter/tomcat/webapps/test
I have example.jsp page in /home/peter/tomcat/webapps/test,
and if I input http://localhost/test/example.jsp in IE browser,
that page can show properly, and if I put moon.jpg in the same directory /home/peter/tomcat/webapps/test, then use http://localhost/test/moon.jpg in IE, it also can show properly.
My problem is if moon.jpg isn't in /home/peter/tomcat/webapps/test, I put it into /archive/repository/data/
which configuration file I should modify in tomcat in order to use
http://localhost/test/data/moon.jpg to show that picture.

Thank you!!!
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

"jdk tomcat",
Please check your private messages.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Question about tomcat configuration...
It's not a secret anymore!