Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Create Servlet class without extending HttpServlet

 
Abhra Kar
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Normally we create servlet extending HttpServlet which will act as a HttpServlet.What are the other ways of creating servlet and what will be the nature of that servlet
and where we can use of that type of srevlet.I think we can make that servlet by extending GenericServlet or implement Servlet.
Please provide me some idea.

Thanks
 
Maneesh Godbole
Saloon Keeper
Posts: 11185
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you want to re-invent the wheel?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65227
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why?
 
Abhra Kar
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BASIC INSTINCT
Any idea about my query please
 
Ashwini Kashyap
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpServlet will create a servlet supporting http protocol while GenericServlet as the name suggests it's generic and is protocol independent.

Thanks,
Ashwini Kashyap | www.infocepts.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic