Use to create the <action-mappings>
element in the
Struts configuration file. This is one of the two most important
elements used to describe a form action (the other is the
<form-beans>
element). The action mapping describes your
application's possible actions. Use this page to create an <action>
element for each action you would like to define.
<action>
definitions in the
Struts configuration file. Click Add
to create a new action definition or click D
elete to remove an existing one from the list.
<action>
definition in the Struts configuration file.
/
).
For example, to trigger an action for the logon.jsp
page, you would specify the path /logon
. Click
Browse to choose an existing .jsp
from your Struts
project.
true
if this action should be
configured as the default for this application, to handle all
requests not handled by another action. Only one action can be
defined as a default within a single application.
/
).
/
).
<action>
definition in the struts-config.xml
file. This lets you define
how the form bean that this action mapping invokes should be used by
the Struts action servlet controller. Choose the form bean from the
dropdown list.
<form-bean>
definitions for the <action>
element in the Struts configuration file.
validate()
method of the
form bean associated with this mapping should be called for
properties of the form bean. The default is true.
/
). For example, to pass control to a logon.jsp
page, you would
specify the path /logon
. This may be the same
page as the one in the forward control definition to allow the
user to view the validation error message and correct the
problem.
<action>
definition in the Struts configuration file. This lets you define
local forwards that this action mapping should invoke. Click
Add to create a new local forward definition or click
Remove to delete an existing local forward definition.
execute()
method calls findFoward()
on an
action mapping instance:
actionMappingInstance.findForward("logicalName")
.
/
). For example, to pass control to a logon.jsp
page, you
would specify the path /logon
.
org.apache.struts.action.ActionForward
<exceptions>
definition
for the <action>
element in the Struts
configuration file. This lets you define local exceptions that exist
for this action mapping. Click Add
to create a new exception definition or click R
emove to remove one you select from the list.
<exceptions>
definitions for the <action>
element in the Struts configuration file.
org.apache.struts.config.ExceptionConfig
) that will hold the exception information.
/
). Click B
rowse to choose an existing resource from your Struts project.
ActionError
.
ActionError
should be
stored. Request scope is the default.
<set-property>
definitions of an
existing <action>
definition in the Struts
configuration file. This lets you initialize specific properties of
the action. Click Add to create a
new property definition or click Remove
to delete an existing property definition.
For more information, see the Struts User Guide on the Apache Struts web site http://struts.apache.org/userGuide/index.html
Copyright © 1997, 2004, Oracle. All rights reserved.