If you are talking about can your web application reside outside of the webapps folder, then yes you can do that. You just need to define your application's context path and location. In tomcat you can go into %CATALINA_HOME%/conf/Catalina/ and create an xml file there with something like this as the content
Ankit Garg wrote: In tomcat you can go into %CATALINA_HOME%/conf/Catalina/ and create an xml file there with something
well Ankit, what is the name of the xml ? [i am not sure] you can put the contaxt tag inside the server.xml or create a context.xml under META-INF[which is preferable]
Here's the tomcat configuration reference. If you are talking about the server.xml of tomcat, then in that page you'll see
For Tomcat 6, unlike Tomcat 4.x, it is NOT recommended to place <Context> elements directly in the server.xml file. This is because it makes modifing the Context configuration more invasive since the main conf/server.xml file cannot be reloaded without restarting Tomcat.