Monday, 11 April 2016

What is Struts actions, Action mappings and Action servlet ?


Struts Action
  • An instance of a subclass of an Action class
  • runs the perform or execute method returns a forward
  • performs tasks (Business logic)

Action mapping
  • A configuration file entry which associates an action name with an action.
  • can contain a reference to a form bean that the action can use
  • can define a list of local forwards that is visible only to the specific action

Action Servlet
  • Primary component of the Controller
  • A servlet that is started by the servlet container of a Web server
  • process a request that invokes an action
  • receives a forward from the action and asks the servlet container to pass the request to the forward's URL.
  • must be an instance of an ActionServlet class or its subclass.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.