GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Struts
Go To First  |  Previous Question  |  Next Question 
 Struts  |  Question 59 of 102    Print  
what is the difference between a normal servlet and action servlet?

  
Total Answers and Comments: 3 Last Update: November 24, 2006     Asked by: sadashivarao 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 03, 2006 03:37:31   #1  
ARUN        

RE: what is the difference between a normal servlet an...

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


 
Is this answer useful? Yes | No
July 19, 2006 01:35:09   #2  
S Prithviraj        

RE: what is the difference between a normal servlet an...

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.


 
Is this answer useful? Yes | No
November 24, 2006 08:26:16   #3  
Jayakumar.v        

RE: what is the difference between a normal servlet an...

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.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape