Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about http actions in while using generic servlet

 
vinaykrothapalli kumar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends i have a small question
how can we do the http operatins when we extends generic servlet in to our servlet
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean?
 
Anoop Kavalloor
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi mate,
The Servlet API has given two classes namely javax.servlet.GenericServlet and javax.servlet.http.HttpServlet. You are supposed to extend to HttpServlet if you want the underlying protocol to be HTTP. If u extend to GenericServlet, then you have to write the tedious work of managing the network protocol.

 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Unqualified Genius",
You have already rrecieved a warning about your display name here.

Please correct it immediately or your account will be deleted.

thanks,
David O'Meara
Moderator.
 
Rajesh Agarwal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpServlet is a subclass of GenericServlet. I dont think so it is possible to use http methods without implementing it yourselves in your GenericServlet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic