You will also need to map your servlet in web.xml
In this case, you would hit the servlet with:
http://localhost:8080/simple-mvc 'load-on-startup' tells the server to load that servlet when it starts up.
It's often helpful, if the servlet has a lot of initialization to do when it's first loaded, to do all this when the app starts instead of waiting until the first time someone hits it with a browser. The number in the body
allows you to control the order in which your servlets are loaded.
Before context listeners, it was also used often for application initialization.
Originally posted by sabu:
there is no need to use the port number bcase im using port 80
- which is the default port.
Have you configured your server to use Port 80?
Tocmat, which I believe, it what JBoss is using as it's servlet container ships configured to use port 8080.
Tomcat [ January 15, 2005: Message edited by: Ben Souther ]