Struts

Index

*Struts flow

Browser => Controller Servlet(Action Servlet) => Create or Retrieve form bean => Store the form bean specified scope => call reset() method => populate form bean with requested data => call validate() method

if errors = Forward to Input page

If no errors = execute() method

*ActionServlet can be configured in 2 ways

  1. Extension map (*.do)
  2. Path map (/do/*)

*Struts Actions

  1. org.apache.struts.action.DispatchAction
  2. org.apache.struts.action.ForwardAction
  3. org.apache.struts.action.IncludeAction
  4. org.apache.struts.action.LookupDispatchAction
  5. org.apache.struts.action.MappingDispatchAction
  6. org.apache.struts.action.LocaleAction
  7. org.apache.struts.action.SwitchAction

*Struts Architecture

StrutsArch

*Important tags in struts-config.xml

  1. DataSource
  2. FromBean
  3. action
  4. message-resources
  5. plugin

Index

Leave a comment