org.apache.struts2.showcase.person
Class EditPersonAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.apache.struts2.showcase.person.EditPersonAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable

public class EditPersonAction
extends com.opensymphony.xwork2.ActionSupport

EditPerson

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
EditPersonAction()
           
 
Method Summary
 String execute()
          A default implementation that does nothing an returns "success".
 List getPersons()
           
 String save()
          A default implementation that does nothing an returns "success".
 void setPersonManager(PersonManager personManager)
           
 void setPersons(List persons)
           
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditPersonAction

public EditPersonAction()
Method Detail

setPersonManager

public void setPersonManager(PersonManager personManager)

getPersons

public List getPersons()

setPersons

public void setPersons(List persons)

execute

public String execute()
               throws Exception
A default implementation that does nothing an returns "success".

Specified by:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.opensymphony.xwork2.ActionSupport
Returns:
Action.SUCCESS
Throws:
Exception

save

public String save()
            throws Exception
A default implementation that does nothing an returns "success".

Returns:
Action.SUCCESS
Throws:
Exception


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.