Add Forward/Include 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.
In some exceptional scenarios, you do not need an action to execute, but you do want to
redirect to a new JSP page. In these exceptional scenarios, you have two options:
- Forward Action. Specifies a bridge from the JSP page to another JSP page or an action.
- Include Action. Specifies the same as a forwardaction, except that the JSP page or action
is going to be included by another JSP page or action.
- When you use the Add Forward/Include Action dialog box,
the forward or include is an attribute, rather than an element. The attribute
makes the mapping functionally equivalent to the element, however, the tag is shorter.
You use the Add Forward/Include Action dialog box to register an action forward or an
action include in the struts-config.xml file.
You open the Add Forward/Include Action dialog box by right-clicking in a struts-config.xml file and
choosing Struts > Add Forward/Include Action.
In the Add Forward/Include Action dialog box, you set the following properties:
- Action Path. Specifies the application context-relative path to the action.
- Action Type.
- Forward Action. Specifies a bridge from the JSP page to another JSP page or an action.
- Include Action. Specifies the same as a forwardaction, except that the JSP page or action
is going to be included by another JSP page or action.
- Call.
- Resource File. Specifies the path to the JSP page that handles the action.
- Action. Specifies the action that handles the forwardaction or includeaction.
- If you want to change a registered forwardaction or includeaction, 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