• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

new web application

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic