| Author |
IS webapp folder must?
|
Aditi Gandy
Ranch Hand
Joined: Apr 23, 2008
Posts: 37
|
|
Can we create our own folder for web application and place it where ever we wnat or should it be only wepapp folder with standard directory path?
Please help me?
|
Thanks & Regards,
Author
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
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
(This is all in reference to Tomcat)...
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
|
|
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]
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
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.
I think this is what you are talking about
|
 |
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
|
|
yes ankit .
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56229
|
|
|
Please be sure to ask Tomcat questions in the Tomcat forum. I have moved this post there for you.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: IS webapp folder must?
|
|
|