aspose file tools*
The moose likes Tomcat and the fly likes Context in server.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Context in server.xml" Watch "Context in server.xml" New topic
Author

Context in server.xml

Nitin Kumar
Greenhorn

Joined: Apr 18, 2005
Posts: 29
Hi,
I would like to know more about <Context> element in server.xml. Can we provide absolute value for path attribute of <Context> element. I am using standalone Tomcat and let my application be My_App. I keep this application in D: folder and not in webapps of Tomcat. So can I provide
<Context> path = "D:/My_App"

Now suppose I also put My_App under webapps along with previously mentioned one then which web.xml and struts-config.xml (If application uses struts framework) is reffered when application run. Please note that there is no war file.

It will be helpful if anyone can provide good learning source ( with examples) for Tomcat Configuration which provide detailed discussion of server.xml , web.xml and struts-config.xml

Regards
Nitin
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by NitinK Kumar:

It will be helpful if anyone can provide good learning source ( with examples) for Tomcat Configuration which provide detailed discussion of server.xml , web.xml and struts-config.xml


Here is the one I use most often:
http://tomcat.apache.org/tomcat-5.5-doc/config/index.html


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Context in server.xml