- World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.

Get it now !!
Send your Resume to 6000 Companies

Search Interview Questions

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

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

Category Struts Interview Questions & Answers - Exam Mode / Learning Mode
Rating (0.3) By 6174 users
Added on 7/17/2011
Views 51197
Rate it!
Question: What is the difference between a normal servlet and action servlet?


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

we will define the action servlet in web.xml and <url-pattern> as *.do
for mapping the requests which ends with .do , but we dont write the doget and dopost methods as we write in normal servlets.
Main function of action servlet is to process the request and forward it to appropriate action class (*.do). Source:

Answered by: Raghu J | Date: 7/8/2009 | Contact Raghu J Contact Raghu J

Normal Servlet and Action servlet are same but Action servlet consists of logic for forwarding the request to corresponding action class Source:

Answered by: Balu R | Date: 10/2/2009 | Contact Balu R Contact Balu R

Both r used for controlling purpose,but Normal servlet is servlet
the user is resposible.But the action servlet is by deafaulty configure with struts Framework.

ActionServlets implements FrontController Design pattern.
ActionServlet is a singleton,but NormalServlet is not a Singleton. Source:

Answered by: sreenivasulu | Date: 11/24/2009 | Contact sreenivasulu Contact sreenivasulu

There is some difference between normal servlet and ActionServlet.
Action servlet is configure with struts framework and it creates action class and actionform Source:

Answered by: Sravan | Date: 12/15/2009 | Contact Sravan Contact Sravan

Normal Servlet extends from Servlet or HttpServlet, but Action Servlet class extends from ActionServlet. ActionServlet must have the execute method to forward the request to some action class. Source:

Answered by: Zahid Nasim | Date: 1/8/2010 | Contact Zahid Nasim Contact Zahid Nasim

normal and actionServlet both extends HttpServlet,in normal servlet there is no execute method,normal servlet is user defined class but action servlet is predefined Source:

Answered by: Rajeev | Date: 3/5/2010 | Contact Rajeev Contact Rajeev

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

Ans:- The ActionServlet is a predefined servlet type class which comes along with struts framework, It follows the ?Front Controller? design pattern. Then main purpose of the ActionServlet is to receive the every request from the client and control the flow of process by using some helper classes like RequestProcessor. The programmer can directly use this class with out any implementation of it because it's already defined.

Normal Servlet: In case of normal servlet we should extends our class either from GenericServlet or HttpServlet or else implements Servlet. The Normal servlet doesn't follow the ?Front Controller? design pattern that means every servlet might not be comes to the same servlet. Every request might point to different servlet. Source:

Answered by: Shaik Baji | Date: 4/20/2010 | Contact Shaik Baji Contact Shaik Baji

Normal servlet and Action both basically same only difference is that action servlet consists of logic for forwarding the request to corresponding action class. and one is also action servlet execute mathod. Source:

Answered by: yogesh | Date: 5/17/2010 | Contact yogesh Contact yogesh

actionservlet is a singleton java class.some servers like web logic not follow the servlets specification bcz 300 req gives simultaneously it creates a new servlet obj at thar time servelt specifiation is failure .i.e single instance multiple thread concept Source:

Answered by: kiran | Date: 6/9/2010 | Contact kiran Contact kiran

If you have the better answer, then send it to us. We will display your answer after the approval

Rules to Post Answers in

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.

Post your answer here

Inform me about updated answers to this question.
Related Questions
View Answer
What is Struts?
View Answer
What is the difference between Struts 1.0 and Struts 1.1?
View Answer
Explain Struts navigation flow?
View Answer
What is the difference between ActionForm and DynaActionForm
View Answer
What is DispatchAction?
View Answer
How to call ejb from Struts?
View Answer
What are the various Struts tag libraries?
View Answer
What is the difference between ActionErrors and ActionMessages?
View Answer
How you will handle errors and exceptions using Struts?
View Answer
How you will save the data across different pages for a particular client request using Struts?
View Answer
What we will define in Struts-config.xml file. And explain their purpose?
View Answer
What is the purpose of tiles-def.xml file, file, validation.xml file?
View Answer
What is Action Class? What are the methods in Action class?
View Answer
Explain about token feature in Struts?
View Answer

Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

View All Struts Interview Questions & Answers - Exam Mode / Learning Mode

India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.203125 Seconds