wood burning stoves 2.0*
The moose likes Servlets and the fly likes doubt with generic servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "doubt with generic servlet" Watch "doubt with generic servlet" New topic
Author

doubt with generic servlet

yuvraj kotegar
Ranch Hand

Joined: Jul 31, 2008
Posts: 120
i just saw the code for generic servlet. it doesnt have any methods which are abstract in it. all hve method bodies.

but what made the developers to mark it abstarct??
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

The Servlet Specification requires it to be abstract.

Since it makes no sense to instantiate a non-extended servlet, both GenericServlet and HttpServlet are abstract.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
yuvraj kotegar
Ranch Hand

Joined: Jul 31, 2008
Posts: 120
Thanks for the quick reply sir
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: doubt with generic servlet