Can we override the ActionServlet?

Answer Posted / vivek dubey

Yes we can modify the functionality of Action Servlet.
to do this we have to extend the RequestProcessor class and
overwrite the processPreprocess method.
and then add following tag in Struts-config.xml
<processor
className="org.abc.comp.ExtendedRequestProcessorClass"/>

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do cookies work in servlets?

583


What is a deployment descriptor?

601


What is the life cycle of a servlet?

791


What is the difference between portlet and servlet?

514


Difference between get and post in java servlets?

550






How do you create a cookie using servlet?

581


Who is responsible to create the object of servlet?

722


What is difference between server and servlet?

581


Which java framework is most popular?

581


Which event is fired at the time of session creation and destroy?

880


Explain load on start-up and its importance?

601


How can we perform any action at the time of deploying the project?

623


Define servlet mapping?

662


What are the life-cycle methods for a servlet?

557


Tell us something about servletcontext interface.

628