Related properties in tags

Source: Internet
Author: User
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

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.