Home
Creating a Struts action
To create the Struts Action for logon, do these steps:
Close the Welcome window.
Drag and drop the Struts Action icon () from the Palette.
Overtype the name of the action with /logon and press Enter .
Figure 15-7 Struts components: Create Struts action
Note: When initialially typing in the name, the logon component appears in black and white. This is because the component has not yet been realized. After you are done with the typing in the name, the Struts action becomes automatically realized and as a result, the action widget is displayed in color.
Notice that the Web Diagram Editor directly manipulates the underlying artifacts (creation of action class and updating of the struts-config.xml).
In this case, a LogonAction class is created in the rad75strutsweb.actions package, and the Struts configuration file is updated.
ibm.com/redbooks