Print
XworkTags

@xwork.action

Declares a xwork action. Action can be whole class or even single method

( public String () ) can be used as action. Specifying action on class will

imply execute() method. Specifying action on method will use this method

name. receives parameters

Several tags are alowed on same method / class for different packages.

Unique

false

Allowed locations

class

method

constructor

field

true

true

false

false

Parameter

Required

Allowed values

Default value

Array

Token separator

Description

name

true

Any value

 

no

 

Specifies the action name

package

false

Any value

 

no

 

Specifies the package namespace which this action declaration belongs.

if no package is declared, action will be included in any case.

@xwork.exception-mapping

declarees action exception mapping. applies to preceeding action tag

Unique

false

Allowed locations

class

method

constructor

field

true

true

false

false

Parameter

Required

Allowed values

Default value

Array

Token separator

Description

exception

true

Any value

 

no

 

class name of exception

result

true

Any value

 

no

 

action result to be used

@xwork.interceptor-ref

Declares a interceptor-ref. applies to preceding action tag. can receive parameters

Unique

false

Allowed locations

class

method

constructor

field

true

true

false

false

Parameter

Required

Allowed values

Default value

Array

Token separator

Description

name

true

Any value

 

no

 

The interceptor reference name.

@xwork.param

declares parameter in various places ( action, result, interceptor ref ).

applies to preceding tag

Unique

false

Allowed locations

class

method

constructor

field

true

true

false

false

Parameter

Required

Allowed values

Default value

Array

Token separator

Description

name

true

Any value

 

no

 

parameter name

value

true

Any value

 

no

 

parameter value.

@xwork.result

Declares an action result. applies to preceding action. receives parameters

Unique

false

Allowed locations

class

method

constructor

field

true

true

false

false

Parameter

Required

Allowed values

Default value

Array

Token separator

Description

name

false

Any value

 

no

 

Defines the result name. Usualy success, error, input or login.

If result is not specified, xwork will assume that "success" is meant

type

false

Any value

 

no

 

Defines the result type.

value

false

Any value

 

no

 

Defines a not parametrized value.

Powered by Atlassian Confluence