Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Execute servlet without mapping in web.xml?

843841Mar 14 2003 — edited Jul 25 2005
I'm reading a book that says I can execute a servlet directly without having to use url mapping in the web.xml file using this syntax:

http://localhost:8080/documentRoot/servlet/packageName.ServletName

The book is "Murach's Java Servlets and JSP", which I am really enjoying but I can't for the life of me figure out why this won't work on my computer!

The error I get is "HTTP Status 404" with the following text:

"The requested resource (/murach/servlet/email5.EmailServlet) is not available"

Any suggestions as to what I may be doing wrong? I'm using Tomcat version 4.1.12.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2005
Added on Mar 14 2003
15 comments
1,154 views