# Add Action Dialog Box

Use to register an action in the `struts-config.xml` file.

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.

In the Add Action dialog box, you set the following properties:

Element | Description
--- | ---
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.

Note: If you want to change a registered action, you can do so by manually editing the XML tags in the `struts-config.xml` file.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.