• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

new web application

 
lalit mohan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic