Can we override the ActionServlet?
Answers were Sorted based on User's Feedback
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 |
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 |
Can servlet have a constructor ?
How to notify an object in session when session is invalidated or timed-out?
What is Servlet API used for connecting database?
Life Cycle of servlets?
What is servlet container. how it works?
How multiple simultaneous requests can be handled by servlets?
How is a servlet implemented in code?
how can we create object to a class in a jsp file?
5 Answers Accenture, L&T, TCS,
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
Is servlet synchronized?
Which java application server is the best?
How do you invoke a servelt?