Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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’s the difference between forward() and sendredirect() methods?

0 Answers  


What is Client-Server Computing?

0 Answers   TCS,


What is servlet lazy loading?

0 Answers  


How can a servlet be used to generate plain text instead of html?

0 Answers  


How will you pass values from HTML page to the servlet?

0 Answers  


why we should override only no-agrs init() method.

0 Answers  


What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

0 Answers  


Explain life cycle of a Servlet?

2 Answers  


If servlet receives multiple requests, how many objects will it create?

0 Answers  


Explain the steps involved in placing a servlet within a package?

0 Answers  


What is with the javax.servlet package naming?

2 Answers  


How can the referrer and the target urls be used in servlet?

0 Answers  


Categories