Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Struts Wiki" for change 
notification.

The following page has been changed by MichaelJouravlev:
http://wiki.apache.org/struts/StrutsManualActionClasses

------------------------------------------------------------------------------
  Behavior object handles a group of related messages (events, commands). These 
messages often correspond to one business object, like classic Create, 
Retrieve, Update and Delete messages that identify basic operations on 
persistent objects in a database-driven application. Behavior object usually 
changes application state based on incoming message. Application state can be 
stored in database, flat file or in a scoped object like !HttpSession or 
!HttpServletRequest.
  
  A behavior object has methods that correspond to incoming messages. Therefore 
an Action that manages a persistent object will likely have create(), 
retrieve(), update() and delete() methods. Each method is triggered with a 
specific parameter sent in a request.
+ 
+ inline:event_dispatcher.gif
  
  Struts Extras package allows to define behavior objects with one of 
subclasses of Action class: DispatchAction, LookupDispatchAction, 
MappingDispatchAction, EventDispatchAction. These subclasses decode an event 
from incoming request and dispatch it to a corresponding event handler. The 
exact way of defining events depends on specific Action subclass. 
  

Reply via email to