wood burning stoves*
The moose likes Struts and the fly likes how to overide the service method of action 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 » Frameworks » Struts
Bookmark "how to overide the service method of action servlet" Watch "how to overide the service method of action servlet" New topic
Author

how to overide the service method of action servlet

anilkumar choudary
Greenhorn

Joined: Jun 15, 2006
Posts: 6
hi

can we ovreride the service method of action servlet if means how if not why
please give answer
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The ActionServlet class is not final, so the answer is yes, you can override the service() method. The real question is why you'd ever want to. If you're making that radical a change to the ActionServlet, why even use the Struts framework at all? If there is something you want to change about the way Struts handles things, I suspect there are easier and less radical ways to do so than overriding the service() method of ActionServlet.


Merrill
Consultant, Sima Solutions
 
 
subject: how to overide the service method of action servlet