• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with @webservlet

 
Hendra Kurniawan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
never mind, solved it. case sensitive problem. coming from VB, case sensitivity in Java really is a hindrance.
 
Singh Harmeet
Ranch Hand
Posts: 115
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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={})
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic