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

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

Is This Answer Correct ?    0 Yes 8 No

Post New Answer

More Servlets Interview Questions

How would you create deadlock on your servlet?

0 Answers  

1.HttpSession 2.Hidden fields 3.URL Rewriting these primitive type of Session maintainance. What is the other type of process that could help to maintain the Session? pls Explain the process if u know?

5 Answers   OnMobile,

What do you mean by default initialization in java servlet?

0 Answers  

What are the kinds of http requests?

0 Answers  

how to link html file to sevlet name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file

0 Answers  

What is string tokenizer?

0 Answers  

hi.... i have problem in running of servlet. i am using Tomcat server in my pc.. The problem is when i am click on strat it will display like below FAIL - Application at context path /first could not be started.. How i can slove the problem.. help plz

3 Answers  

How do I use cookies to store session state on the client?

0 Answers  

what is OOAS

2 Answers   iGate,

Can we override servlet service method?

0 Answers  

Can filter be used as request or response?

0 Answers  

How do we translate jsp?

0 Answers