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

What is lazy loading and what is Generic Servlet Class?

0 Answers  


What is servlet collaboration?

0 Answers  


In servlets, Why do we need both GET and POST method implementations?

3 Answers   IBM,


How many Cookies can a host support?

2 Answers  


Should I override the service() method?

0 Answers  






Why filter is used in servlet?

0 Answers  


What is cookie in servlet?

0 Answers  


Who is responsible to create the object of servlet?

0 Answers  


Are Servlets by default thread safe or not? thanks in advance regards Sudhakar

3 Answers  


How can a servlet refresh automatically if some new data has entered the database?

3 Answers   Citi Bank, CitiGroup, IBM, Satyam,


What do you mean by filter in servlet?

0 Answers  


what is the advantage of using Servlets over CGI programming?

4 Answers  


Categories