File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes problem with @webservlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem with @webservlet" Watch "problem with @webservlet" New topic
Author

problem with @webservlet

Hendra Kurniawan
Ranch Hand

Joined: Jan 31, 2011
Posts: 239
I have this for my servlet:


my jsp is displayed just fine, but when submitting a form (the form is in this jsp) calling myservlet, tomcat said it's not found. what's wrong?
Hendra Kurniawan
Ranch Hand

Joined: Jan 31, 2011
Posts: 239
never mind, solved it. case sensitive problem. coming from VB, case sensitivity in Java really is a hindrance.
Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

the default attribute of @webServlet() is url-pattren if you write one attribute then it is mandatory to define url-pattrent also. so the correct syntax is @webServlet(name="" , urlpattrens={})


With Regards :-
Harmeet Singh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with @webservlet
 
Similar Threads
Problems getting Tomcat to work without Eclipse IDE
Getting error while upgrading my running application from jboss-4.2.1.GA to jboss-6.0.0.Final.
getting error when deploying web app in weblogic 10.0
java.lang.NullPointerException on a jsp page
HTTP 404 error problem