You can specify certain conditions under which a Struts Action will
be triggered. To specify a condition, do the following:
- Start the Struts Tools BTT Extensions.
- From the Action Conditions tab of the tool, click the Add button
under the Defined Action Conditions section.
- From the dialog box that pops up, type the name of the Action condition
and click OK.
- Select the Action condition that you just created, and click the Add button
under the Action Conditions Elements section.
- From the dialog box that pops up, type the name of the condition
element, the class name, and the Actions that are triggered when the condition
is true and when the condition is false.
Note: Note that instead
of typing the class name, you can click the Add button
and browse to your condition process class.
The following types of Actions
can be triggered:- changeState, which changes the state of the Struts process to the
specified action forward.
- condition, which moves the condition processing onto a specified
condition evaluation
- continue, which leads the Struts process to the next condition
in sequence
- abort, which aborts the condition processing
- Click OK to close the dialog box.
- Add more action condition elements and action conditions according
to your business need.
