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 |
why are extending GenericServlet and why are extending HttpServlet explain?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
If we disable cookies in our web page, what will happen?
what is servlet and what you get when we use servlets?
Some examples where generic servlet is used?
What is Request Dispatcher?
When servlet object is created?
What do you mean by filter in servlet?
What is the difference between the include() and forward() methods?
What type of protocols are used in HttpServlet?
What are the advantages of Servlet over CGI?
How variables can be accessed across the sessions?