Add Action Dialog Box
See Also
A Struts action responds to a request. Writing an action means subclassing one
of the Action classes and then overriding the class's execute method.
Use the New Struts Action wizard for this purpose.
You use the Add Action dialog box to register an action in the struts-config.xml file.
You open the Add Action dialog box by right-clicking in a struts-config.xml file and
choosing Struts > Add Action.
In the Add Action dialog box, you set the following properties:
- Action Class. Specifies the fully qualified Java class name of the action.
- Action Path. Specifies the application context-relative path to the action.
- Use ActionForm Bean. Specifies whether an actionform bean should be used or not. If you
select this checkbox, the following fields are enabled.
- ActionForm Bean Name. Specifies the name of the actionform bean.
- Input Resource. Specifies the path to the JSP page that handles the actionform bean.
- Input Action. Specifies the action that handles the actionform bean.
- Scope. Specifies the scope of the action. By default, the action
is set to Session scope.
- Attribute. Specifies an attribute that causes the actionform bean to be mapped into scope. When an actionform
bean is mapped into scope, the action can access the actionform bean's values and display them in a JSP page.
- Validate Form Bean. Specifies that the validate method of the action associated with this actionform bean should be called.
- Parameter. Specifies general-purpose attribute often used by "standard" actions to pass a required property.
- If you want to change a registered action, you can do so by manually editing
the XML tags in the struts-config.xml file.
- See Also
- About Struts Framework Support
- Creating a New Application with Struts Support
- Adding Struts Support to an Existing Application
- About Web Application Frameworks
Legal Notices