@webwork Tag Reference

WebWork

@webwork Class Level Tags

@webwork.action

@webwork Method Level Tags

@webwork.command

@webwork Field Level Tags

@webwork Class Level Tag Usage

@webwork.action (0..*)

Define an action for this class

Applies to: WebWork Actions

ParameterTypeApplicabilityDescriptionMandatory
nametextAction name.true
successtextUse the specified resource if SUCCESS is returnedfalse
errortextUse the specified resource if ERROR is returnedfalse
inputtextUse the specified resource if INPUT is returnedfalse
viewstextProvide a comma-separated list of actions views in the RETURN_VALUE=RESOURCE format used by views.propertiesfalse

@webwork Method Level Tag Usage

@webwork.command (0..*)

Define a CommandDriven action using this method. Your action must fulfill the CommandDriven requirements (like implementing CommandDriven.) See http://wiki.opensymphony.com/space/Using+CommandDriven+Actions

Applies to: WebWork CommandDriven Actions

ParameterTypeApplicabilityDescriptionMandatory
nametext Command action name. Will create an action named 'action.command', where 'action' is the contents of the 'name' parameter in @webwork.action and 'command' is the contents of the 'name' parameter of this tag. true
successtextUse the specified resource if SUCCESS is returned by this CommandDriven actionfalse
errortextUse the specified resource if ERROR is returned by this CommandDriven actionfalse
inputtextUse the specified resource if INPUT is returned by this CommandDriven actionfalse
viewstextProvide a comma-separated list of actions views in the RETURN_VALUE=RESOURCE format used by views.properties to specify additional properties for this CommandDriven actionfalse

@webwork Field Level Tag Usage