Can we override the ActionServlet?

Answers were Sorted based on User's Feedback



Can we override the ActionServlet?..

Answer / sr

we can not override an actionservlet because it is a class .

but we can sub class the actionservlet and we can have our
own request processor class.The above code is useful for
incuding request processor class.

Is This Answer Correct ?    18 Yes 2 No

Can we override the ActionServlet?..

Answer / sujit

The above ans is incorrect so the correct code to be
written in struts-config.xml is
<controller
processorClass="org.abc.comp.ExtendedRequestProcessorClass"/
>

Is This Answer Correct ?    8 Yes 3 No

Can we override the ActionServlet?..

Answer / 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

More Servlets Interview Questions

Can we define constructor in Servlet class?

10 Answers   Accenture, Yugma,


What is the requirement of servlet config and servlet context implemented and how are they implemented?

0 Answers  


What's the advantages using servlets than using cgi?

0 Answers  


Which java framework is most popular?

0 Answers  


What is HTTP Session ?

6 Answers  






I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?

0 Answers   IBM,


what is EJB and Java servlet

2 Answers  


What is setattribute in servlet?

0 Answers  


How a servlet is unloaded?

0 Answers  


Explain load on start-up and its importance?

0 Answers  


Is there any need to shutdown the web server, if you want to modify a servlet?

3 Answers  


where the generated jsp source file are stored?

7 Answers   HCL,


Categories