Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Adds an error message with to the given error list from either an inline message or a message from a properties file

Attribute NameRequired?Description
error-list-nameNThe name of the list to in the method environment to check for error messages. Defaults to "error_list".
Sub-Element NameHow ManyDescription
fail-message0 or 1Used to specify an inline message. Has one attribute called 'message'.
fail-property0 or 1Used to get the message from a properties file. Has two attributes: resource and property.

return

Returns immediately from the simple-method with the given response code string.

Attribute NameRequired?Description
response-codeNThe string to return as a response code. Defaults to "success".

Event Specific Operations

field-to-request

The field-to-request tag copies a field from a map to the specified servlet request attribute.

The tag is only used when the simple-method is called as an event, it is ignored otherwise.

Attribute NameRequired?Description
map-nameNThe name of the map in the method environment. If not specified the field-name will be used to get the field from the method environment.
field-nameYThe name (key) of the map field to use.
request-nameNThe name of the request attribute to use. Defaults to the field-name.

field-to-session

The field-to-session tag copies a field from a map to the specified servlet session attribute.

The tag is only used when the simple-method is called as an event, it is ignored otherwise.

Attribute NameRequired?Description 
map-nameNThe name of the map in the method environment. If not specified the field-name will be used to get the field from the method environment. 
field-nameYThe name (key) of the map field to use. 
session-nameNThe name of the session attribute to use. Defaults to the field-name. 

request-to-field

The request-to-field tag copies an attribute from the servlet request to a field of a map in the method environment.

The tag is only used when the simple-method is called as an event, it is ignored otherwise (except the default value, if specified).

Attribute NameRequired?Description
map-nameNThe name of the map in the method environment. If not specified the field-name will be used to set the field in the method environment.
field-nameYThe name (key) of the map field to use.
defaultNA default value to use if the request attribute is null or is a String and is empty. This will also be used when NOT running as an event.
request-nameNThe name of the request attribute to use. Defaults to the field-name.

request-parameters-to-list

The request-parameters-to-list tag appends a request parameter values from the servlet request to the specified list.

The tag is only used when the simple-method is called as an event, it is ignored otherwise.

Attribute NameRequired?Description
request-nameYThe name of the request parameter values to use.
list-nameNThe name of the list in the method environment that the request parameter values will be appended to. (default: request-name)

session-to-field

The session-to-field tag copies an attribute from the servlet session to a field of a map in the method environment.

The tag is only used when the simple-method is called as an event, it is ignored otherwise (except the default value, if specified)

Attribute NameRequired?Description
map-nameNThe name of the map in the method environment. If not specified the field-name will be used to set the field in the method environment.
field-nameYThe name (key) of the map field to use.
defaultNA default value to use if the session attribute is null or is a String and is empty. This will also be used when NOT running as an event.
session-nameNThe name of the session attribute to use. Defaults to the field-name.