...
Adds an error message with to the given error list from either an inline message or a message from a properties file
Attribute Name | Required? | Description |
---|---|---|
error-list-name | N | The name of the list to in the method environment to check for error messages. Defaults to "error_list". |
Sub-Element Name | How Many | Description |
---|---|---|
fail-message | 0 or 1 | Used to specify an inline message. Has one attribute called 'message'. |
fail-property | 0 or 1 | Used 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 Name | Required? | Description |
---|---|---|
response-code | N | The 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 Name | Required? | Description |
---|---|---|
map-name | N | The 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-name | Y | The name (key) of the map field to use. |
request-name | N | The 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 Name | Required? | Description | |
---|---|---|---|
map-name | N | The 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-name | Y | The name (key) of the map field to use. | |
session-name | N | The 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 Name | Required? | Description |
---|---|---|
map-name | N | The 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-name | Y | The name (key) of the map field to use. |
default | N | A 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-name | N | The 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 Name | Required? | Description |
---|---|---|
request-name | Y | The name of the request parameter values to use. |
list-name | N | The 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 Name | Required? | Description |
---|---|---|
map-name | N | The 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-name | Y | The name (key) of the map field to use. |
default | N | A 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-name | N | The name of the session attribute to use. Defaults to the field-name. |