aspose file tools*
The moose likes Servlets and the fly likes new web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "new web application" Watch "new web application" New topic
Author

new web application

lalit mohan
Greenhorn

Joined: Apr 08, 2004
Posts: 16
i have tomcate 4.1.29 version. when i make new webapplication then there is any need to register it in the any tomcat file, so that container can invoke the servlet declare in it.
Gert Cuppens
Ranch Hand

Joined: Jul 13, 2003
Posts: 87
First of all, you should start your Tomcat and then in the browser you should go to http://localhost:8080/index.jsp.
This gives you the Tomcat start screen. There you can find the Tomcat Administration. Log in en define a new web application. You must define this under 'Tomcat - Tomcat server - host (localhost).
ANyway, if this goes well, you should have a folder under the folder "web applications" with the name of your web application.
For example, I have a web application, called "brukkerlin", and this application is found in the folder C:\Program Files\Apache Group\Tomcat 4.1\webapps\brukkerlin.
This folder then contains other folders, but it certainly must have a WEB-INF folder. This WEB-INF folder contains a folder classes (where you can put the compiled .class-files) and a web.xml.
It is this web.xml file which defines the servlet Tomcat must use to get the application going.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12785
    
    5
If you want to comply with the servlet API and use the full flexibility that it provides, you might as well learn how to use the web.xml file to define your "web application". You should download the Sun documentation on the servlet API. Trying to take a shortcut is just going to result in bugs and confusion.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: new web application