Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem running a sample Servlet Example: HTTP 503 Status code

 
prad argum
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
can anyone help me whats going wrong with the following example:
I have a form.html page in webapps/chapter01 directory
:

This on submitting performs POST Action: on TestServlet. TestServlet.java code is in web-inf classes directory along with its class file

My web.xml descriptor is as follows:

when i press the submit button in the form.html i get the following error:
HTTP Status 503 - Servlet TestServlet is currently unavailable
can anyone help me with this...
thanks
pradgum
 
prad argum
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it solved...
i dint extend the HttpServlet class
thanks any way
pradgum
 
Fisher Daniel
Ranch Hand
Posts: 582
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.. your servlet class should be extends HttpServlet...
daniel
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic