File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Question about tomcat configuration...

jonathan ford
Greenhorn

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
Sheriff

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Question about tomcat configuration...