The Action Class is a wrapper around the
business logic and is a part
of Model.
A D V E R T I S E M E N T
The purpose of using Action Class is
to translate the HttpServletRequest to
the business logic.To use Action we need to
overwrite the execute() method and Subclass.
All database/business processing are done in the Action Class.Action
Class is used perform
all the database related stuffs.
Using execute() methodthe ActionServlet (commad) passes the parameterized
class to Action Form.Struts Framework uses execute method to forward the request to the file as
per the value of the returned ActionForward object.The return type of execute method is ActionForward
|