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 exactly are the functions of servlet?

0 Answers  


What are the difference between RMI and Servlets?

0 Answers  


request parameter how to find whether a parameter exists in the request object?

0 Answers  


What is the process to implement doget and dopost methods?

0 Answers  


What is generic servlet class?

0 Answers  






How can we refresh automatically when new data has entered the database?

0 Answers  


How to maintain security in servlets?

2 Answers  


How can we implement a jsp page?

0 Answers  


How to generate the server side programming and the advantages of it over the other languages?

0 Answers  


What are the different methods of session management in servlets?

0 Answers  


Explain web application directory arrangement?

0 Answers  


Difference between forward() method and sendredirect() method ?

0 Answers  


Categories