Class ModelDrivenAction
java.lang.Object
org.apache.struts2.ActionSupport
org.apache.struts2.showcase.modelDriven.ModelDrivenAction
- All Implemented Interfaces:
Serializable,Action,ValidationAware,LocaleProvider,ModelDriven,TextProvider,Validateable
Action to demonstrate simple model-driven feature of the framework.
- See Also:
-
Field Summary
Fields inherited from class org.apache.struts2.ActionSupport
container -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.struts2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocale, getLocaleProvider, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocale, validate
-
Constructor Details
-
ModelDrivenAction
public ModelDrivenAction()
-
-
Method Details
-
input
- Overrides:
inputin classActionSupport- Throws:
Exception
-
execute
Description copied from class:ActionSupportA default implementation that does nothing an returns "success".Subclasses should override this method to provide their business logic.
See also
Action.execute().- Specified by:
executein interfaceAction- Overrides:
executein classActionSupport- Returns:
- returns
Action.SUCCESS - Throws:
Exception- can be thrown by subclasses.
-
getModel
Description copied from interface:ModelDrivenGets the model to be pushed onto the ValueStack instead of the Action itself.Please be aware that all setters and getters of every depth on the object returned by this method are available for user parameter injection!
- Specified by:
getModelin interfaceModelDriven- Returns:
- the model
-