Versions Compared

Key

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

...

Section
Column
width20%
<simple-method>
Column
Contains a block of code.
Code Block
xml
xml
<simple-method method-name="myMethod">
  <!-- some mini-language code goes here -->
</simple-method>

Attributes

method-name

requiredoptional

Each simple method in a file must have a unique name

short-description

optional

Used for documentation

default-error-code

optional

 

default-success-code

optional

 

parameter-map-name

optional

 

event-request-object-name

optional

 

event-session-object-name

optional

 

event-response-object-name

optional

 

event-response-code-name

optional

 

event-error-message-name

optional

 

event-error-message-list-name

optional

 

event-event-message-name

optional

 

event-event-message-list-name

optional

 

service-response-message-name

optional

 

service-error-message-name

optional

 

service-error-message-list-name

optional

 

service-error-message-map-name

optional

 

service-success-message-name

optional

 

service-success-message-list-name

optional

 

login-required

optional

 

use-transaction

optional

 

locale-name

optional

 

delegator-name

optional

 

security-name

optional

 

dispatcher-name

optional

 

user-login-name

optional

 


Info
titleProposed Changes
  • Eliminate unused and seldom used attributes.
  • Currently, the method-name attribute is optional. Require the method-name attribute.


Assignment Operations

Section
Column
width20%
<add-error>
Column
Adds a message to the error list.
Code Block
xml
xml
<add-error>
  <fail-message message="There was an error" />
</add-error>

Attributes

error-list-name

optional

The name of a list that will contain the message

Default is "error_list"


Child Elements

<fail-message>

optional

<fail-property>

optional


Info
titleProposed Changes

Currently, child elements are optional. Require at least one child element.

Section
Column
width20%
<clear-field>
Column
Removes a field from memory.
Code Block
xml
xml
<clear-field field="foo" />

Attributes

field

optional

The name of the field to remove

map-name

optional

The name of the map to remove


Info
titleProposed Changes
  • Currently, both attributes are optional. Require at least one attribute.
  • Eliminate the map-name attribute.
Section
Column
width20%
<create-object>
Column
Create a new Java object.
Code Block
xml
xml
<create-object field="foo" class-name="com.acme.SomeClass">
  <string value="bar" />
  <field field="foo" />
</create-object>

Attributes

field

optional

The name of the field for the new object

class-name

optional

The Java class name


Child Elements

<field>

optional

<string>

optional


Info
titleProposed Changes
  • Currently, both attributes are optional. Require both attributes.
  • Deprecate and replace with scriptlet
Section
Column
width20%
<env-to-env>
Column
Warning

Deprecated. Use <set>.

Section
Column
width20%
<env-to-field>
Column
Warning

Deprecated. Use <set>.

Section
Column
width20%
<fail-message>
Column
Declares a message to be added to a message list.
Code Block
xml
xml
<add-error>
  <fail-message message="There was an error" />
</add-error>

Attributes

message

optional

The message text


Info
titleProposed Changes
  • Currently, the message attribute is optional. Require the message attribute.
Section
Column
width20%
<fail-property>
Column
Declares a property key that is used to add a message to a message list.
Code Block
xml
xml
<add-error>
  <fail-property resource="ErrorMessages" property="FooError" />
</add-error>

Attributes

resource

optional

Name of the resource where the message can be found

property

optional

The message property key


Info
titleProposed Changes
  • Currently, both attributes are optional. Require both attributes.
Section
Column
width20%
<field-to-env>
Column
Warning

Deprecated. Use <set>.

Section
Column
width20%
<field-to-field>
Column
Warning

Deprecated. Use <set>.

Section
Column
width20%
<field-to-list>
Column
Copies an environment field to a list.
Code Block
xml
xml
<field-to-list list="barList" field="foo" />

Attributes

list

optional

Name of the list. If the list does not exist, one is created.

field

optional

The field to add to the list


Info
titleProposed Changes
  • Currently, both attributes are optional. Require both attributes.
  • Deprecate and replace with UEL expression.
Section
Column
width20%
<field-to-request>
Column
Copies a field to a servlet request attribute.
Code Block
xml
xml

<field-to-request field="foo" request-name="fooAttribute" />

Attributes

field

optional

The name of the field to copy from

request-name

optional

The name of the request attribute to copy to

map-name

optional

The name of the map containing field


Info
titleProposed Changes
  • Currently, all attributes are optional. Require the field and request-name attributes.
  • Eliminate the map-name attribute.
  • Deprecate and replace with a UEL expression.
Section
Column
width20%
<field-to-result>
Column

Section
Column
width20%
<field-to-session>
Column
Copies a field to a servlet session attribute.
Code Block
xml
xml

<field-to-session field="foo" session-name="fooAttribute" />

Attributes

field

optional

The name of the field to copy from

session-name

optional

The name of the session attribute to copy to

map-name

optional

The name of the map containing field


Info
titleProposed Changes
  • Currently, all attributes are optional. Require the field and session-name attributes.
  • Eliminate the map-name attribute.
  • Deprecate and replace with a UEL expression.
<first-from-list>
<list-to-list>

...