File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Jun 20, 2003
Feb 04, 2004 09:21:00
I see that the common url path for accessing the
Can one put the myapps under another level of directory, let say x (so the servlet is physically located in c:\\Tomcat\webapps\x\myapps\WEB-INF\classes) so that the url becomes
what file (server.xml, web.xml?), if any, does one have to modify to accomplish this? Thank you
Joined: Jan 27, 2004
Feb 04, 2004 17:33:00
add this entry to your %CATALINA_HOME%/conf/server.xml
<Context path="/x/myapps" docBase="x/myapps" debug="0"
I agree. Here's the link:
subject: URL path
first job of servlet container
keeping the directory path hidden
Disable Directory Listing
HTTP Status 404 - /myapps/helloworldservlet
Finding a servlet's actual path
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014