Configuration attributes of action and their meanings
Source: Internet
Author: User
Attribute:
This attribute is used to specify the attribute name used when the actionform is saved to the specified context. If the attribute value is not specified, the value of the name attribute is used as the attribute name for saving. That is to say, the default value of attribute is the value of name attribute.
========================================================== ======================================
Classname:
Specifies the custom configuration object. The configuration object must be a subclass of actionmapping. If this attribute is not specified, the default value org. Apache. Struts. Action. actionmapping is used. You can add custom attributes in the action configuration through the custom actionmapping class.
========================================================== ======================================
Forward:
Set the servlet or other resources that process user requests, such as JSP. If this attribute is specified, the action class specified by the Type attribute will become ineffective. Strictly speaking, in each <action> element, the forward, include, and type attributes should be used and only one of them should be used.
========================================================== ======================================
Input:
Specifies the page or action to be returned when data verification fails. This verification is performed only when the name attribute is not empty and the validate attribute is true.
========================================================== ======================================
Name:
Specifies the name of the form Bean (actionform.
========================================================== ======================================
Path:
Specify the path of the user request responded by this action. This attribute is related to the module and starts. In addition, you do not need to add the extension here, such as. Do.
========================================================== ======================================
Parameter:
This is a reserved configuration parameter that can be used to pass some special information. However, some special action classes have already specified a clear meaning for this attribute.
========================================================== ======================================
Prefix:
Specifies the prefix of the USER parameter to be assigned to actionform. This parameter can be set only when the name attribute is not empty.
========================================================== ======================================
Roles:
List of User Role names separated by commas. In the action, you can obtain the role information set here through the instance of the actionmapping object. It is used to verify permissions in the system.
========================================================== ======================================
Scope:
Specifies the context range for saving the actionform. The value is request or session.
========================================================== ======================================
Suffix:
It is used to specify the suffix of the USER parameter to be assigned to actionform. This parameter can be set only when the name attribute is not empty.
========================================================== ======================================
Type:
Specifies the full path name of the action (Org. Apache. Struts. Action) that processes user requests. If the forward or include attribute is specified, this attribute does not work.
========================================================== ======================================
Unknow:
Sets whether the current action is the default action of the current module. When a user request does not have a matched action, it is handed over to the default action for processing. In one module, only one action can be set as the default action.
========================================================== ======================================
Validate:
It is used to set whether to call the validate () method in actionform to verify data validity.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service