aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "URL path" Watch "URL path" New topic
Author

URL path

loni silverstein
Greenhorn

Joined: Jun 20, 2003
Posts: 14
Hi,
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"/>
--Nimchi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URL path