what is the purpose of action servlet and action?

Answer Posted / cokekrish

The class org.apache.struts.action.ActionServlet is called
ActionServlet.This class plays the role of controller. All
the requests to the server goes thorugh the controller. It
is responsible for handling all the requests.

Action is part of Model. The purupose of Actionclass is to
translate the HttpServletRequest to the business logic. To
use Action we need to subclass and overwrite the execute()
method. all database and business processing are done here.

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of @doublerangefieldvalidator?

616


What are action errors and error and what are the consequences they impose?

571


Which configuration file is used for storing jsp configuration information in struts?

549


How you will display validation fail errors on jsp page?

548


What is the purpose of @result annotation?

624






Can you explain value stack?

541


How interceptor works in struts 2?

600


Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?

507


What are the Core classes of Struts Framework?

589


Explain how can we upload files in struts2 application?

627


What is declarative exception handling in struts?

563


Explain the core end goal while using java struts?

528


Can we have multiple struts config files in a single web app?

505


What is the difference between filters and interceptors ?

504


What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?

576