Cleanup resources allocated by the action
this requires the action to be stored on the request in a param named "action"
the ActionBasicsInterceptor performs this task
the dispose method will then be called from the EmpireStrutsDispatcher
This function is called from the EmpireStrutsDispatcher when a request ends
if an action was accociated with the request and the action implements the Disposible interface
then the exit code returned by Disposible.dispose() is passed with the exitCode parameter
You might use the exitCode e.g.
This exit-code might be used to indicate a successful action from the dispose method
The code will be forwarded to the WebRequest's exit method (see WebRequest.exit())
Returns the value formated as a string
this is a simple default implementation that does no type-secific formatting
Derived classes may override formatString an provide further formmatting
see TextInputControl for details
returns the name of the parameter used to get and set the action's item
This function is used by the jsp tags as default parameter name of the item attribute
By default this ist the name "item"
returns the last Action Error of the current or a previous aciton
the error is left on the session unless the clear flag is set to true
In order to display the error to the user an application should use
this function instead of getActionError() and set clear to true.
returns a DBColumnExpr that assembles a key for the given rowset/ table
this method should be used when selecting the id column of a table whith a non simple primary key
i.e.
this method assembles all key values to a combined string
The key parts will be separated by forward slashes (KEY_SEP_CHAR)
thus the key parts must not contain forward slashes.
this method assembles all key values to a combined string
The key parts will be separated by forward slashes (KEY_SEP_CHAR)
thus the key parts must not contain forward slashes.
Determines whether the user needs to Login to access this page
important: return false if the user has already logged in!
The method is called from the ActionAccessInterceptor
lookup -
Variable in class org.apache.empire.struts2.jsp.tags.DataValueTag
name -
Variable in class org.apache.empire.struts2.jsp.tags.RadioButtonTag
name -
Variable in class org.apache.empire.struts2.jsp.tags.SelectTag
NO_VALUE -
Static variable in class org.apache.empire.struts2.jsp.controls.InputControl
The NO_VALUE constant is used as a return value from getFieldValue
to indicate that the value for this column has not been provided
NONE -
Static variable in class org.apache.empire.struts2.interceptors.InterceptorSupport
NULL_VALUE -
Static variable in class org.apache.empire.struts2.jsp.controls.InputControl
The NULL_VALUE constant is used as a return value from getFieldValue
to indicate that the field value was provided with the request, but is empty
so that the underlying database field should be set to null
reloads the current record from the session.
If persistence is set to Key then the key is obtained from the session and the record
is reloaded from the database.
Updates the record by calling onUpdateRecord and updates the currentKey
The update will not be committed, hence the caller must commit or rollback
the operation
scope -
Variable in class org.apache.empire.struts2.jsp.tags.flow.SetTag
This method determines whether an id should be put on the input label
If true than the renderInput function must add an id attribute to an input field
The value of the id is supplied with the ControlInfo
WebAction should be used as the superclass for all your struts2 action classes.
It implements necessary interfaces for parameter-, translation- and error-handling.