File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes new application in tomcat4.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "new application in tomcat4.0" Watch "new application in tomcat4.0" New topic

new application in tomcat4.0

Vedhas Pitkar
Ranch Hand

Joined: Jan 27, 2001
Posts: 445
How do i create a new application in tomcat so that i can access it using
http://localhost/myapp or
If anyone has the solution plz let me know quickly as i am in dire straits.
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
In conf/server.xml add this
<Context path="/myapps"
reloadable="true" >
In tomcat under webapps directory create directorys
2. webapps\myapps\web-inf\

Check examples folder for better replication.Read docs for more understanding and modification.

Spritle Software Blogs
It is sorta covered in the JavaRanch Style Guide.
subject: new application in tomcat4.0
Similar Threads
Basic JSP problem
Mapping Servlet to just the Context Root?
Default Web Application
How to access gif files from servelets
is use of Struts in a social networking like site worth it?