It programmer development Essentials-all kinds of resources download list, history of the most IT resources, personal collection summary.
<action-mappings> Elements
The <action-mapping> element helps with process control within the framework, mapping the request URL to the action class and associating the action object with the Actionform object. <action-mappings> can be set within the element
Multiple <action> child elements.
The <action> element Describes a mapping relationship between a specific request path and a related action class. Has the following properties:
Attribute: Set and action associated Formbean property within Request/session key, via request/session getattribute (attribute) method returns an instance of the Formbean.
If the default is Formbean, the key stored in the scope is the property value of name.
Input: The URL that will request forwarding when the form validation fails. The general combination of validate= "true" to use path: Specifies the access path to the action, that is, the name of the action in the reference, beginning with "/".
Parameter: Specifies the arguments that are allowed to invoke the action. The GetParameter () method of the Actionmapping object is called in the Execute () method of the action class to read. Name: Specifies the reference identity of the Formbean associated with the action.
Scope: The scope of the form that the action uses.
Limit: Only 2 values are available: request and session.
Request: Instantiate a form at a time
Session: All actions within a session share a form with the default value of session.
Type: Specifies the full class name of the action class.
Validate: Specifies whether to call Formbean's validate () method to validate the data of the form. The default is true.
STRUTS1 Note http://download.csdn.net/detail/xh16319/4614925