File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to overide the service method of action servlet
 
Similar Threads
http head methods
JSP problem.
deploying servlet
how dOGet or doPost method is called in service method.
code written in scriptlet of JSP