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

deploying tomcat

tom mickey

Joined: Aug 02, 2008
Posts: 9
Hello everyone.
I have just began to learn jsp and servlets.
I have a question regarding deploying tomcat.
When I write my "helloworld.jsp" applications in the Webapp directory
it works fine when i view it on the browser.
But is there any i can use a directory other than the webapp directory
of tomcat home (say C:\MyServlets) and still be able to run it?

P.S: Netbeans IDE worked fine for this but i want to do this without using any IDE.Also please suggest any good books you know for learning servlets and jsp.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

Sure. You can make any folder in your system the root of a web app. You need to set up a context and assign it a context path. The best way to do this depends upon which version of Tomcat you are deploying.

Check the documentation in your Tomcat download.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: deploying tomcat
jQuery in Action, 3rd edition