File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes URL path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "URL path" Watch "URL path" New topic

URL path

loni silverstein

Joined: Jun 20, 2003
Posts: 14
I see that the common url path for accessing the servlet is http://myserver/myapps/servlet/myservlet. 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 http://myserver/x/myapps/servlet/myservlet? what file (server.xml, web.xml?), if any, does one have to modify to accomplish this? Thank you
Nimchi Yung
Ranch Hand

Joined: Jan 27, 2004
Posts: 71
Try this:
add this entry to your %CATALINA_HOME%/conf/server.xml
<Context path="/x/myapps" docBase="x/myapps" debug="0"
reloadable="true" crossContext="false"/>
I agree. Here's the link:
subject: URL path
It's not a secret anymore!