What is the difference between a normal servlet and action servlet?

Questions by sadashivarao   answers by sadashivarao

Showing Answers 1 - 3 of 3 Answers

ARUN

  • Jul 3rd, 2006
 

Both a normal servlet and action sevlet are same, which extend HttpServlet and implement the servlet lifecycle methods..

  Was this answer useful?  Yes

S Prithviraj

  • Jul 19th, 2006
 

Action servlets in Struts do specifically the following three actions: 1. Invokes  Do Post()/Get Post() 2. Selects proper sub application 3. Invokes process() on Request Processor.

There will be one action servlet per each application module.

General servlets can contain any processing logic.

Jayakumar.v

  • Nov 24th, 2006
 

Hi Folks,

Ordinary Servlets:

These are extends HttpServlet, and service the req, and send the response to the client. At the time, servicing, the container will create the objects for this servlets, when ever, it needs.

ActionServlet:

This also extends HttpServlet. But it wont create objects more than one, instead, it will service the request, by using single object. This is called, SingletonPattern. So, ActionServlets are designed by singleton pattern.

Thanks for recalling.

Regards,

Jy.

Database Engineer.

Sigma Info Solutions Pvt Ltd,

Bangalore.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions