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 can you push data from an Applet to a Servlet?

808


Write a program to show the functionality of doget and dopost method?

862


What is servlet mapping?

742


Write a program to show the functionality of servlets.

722


What is a servlet engine?

716






What are all the ways for session tracking?

797


Why are http servlets used in programming?

721


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

1084


What do you mean by interservlet communication?

758


What are the jobs performed by servlets?

755


When to use doget() and when dopost()?

802


Who is responsible for writing a constructor?

982


What are the uses of servlets?

781


Write the code to get the server information in servlet.

762


Explain the lifecycle of a servlet?

687