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 |
What’s the difference between forward() and sendredirect() methods?
What is Client-Server Computing?
What is servlet lazy loading?
How can a servlet be used to generate plain text instead of html?
How will you pass values from HTML page to the servlet?
why we should override only no-agrs init() method.
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
Explain life cycle of a Servlet?
If servlet receives multiple requests, how many objects will it create?
Explain the steps involved in placing a servlet within a package?
What is with the javax.servlet package naming?
How can the referrer and the target urls be used in servlet?