Action, forward, form-bean attributes in struts-config.xml

Source: Internet
Author: User

1> Action attributes and meanings:

[Path] relative path of action class

[Name] Name of the Action bean associated with this operation (actionform)

[Type] full name of the action class connected to the ing (package name available)

[Scope] scope of actionform Bean (request or session)

[Prefix]

[Suffix]

[Classname] The default class for fully qualified names of actionmapping objects is org. Apache. Struts. Action. actionmapping.

[Input] the path of the input form pointing to the control that must be returned when an input error occurs in the bean

[UNKNOWN] The default value is false. If this attribute is set to true, it indicates that this action will process all requests that have not been found to process the action in the entire application. Of course, only one unknown attribute can be set to true in an application system.

If [validate] is set to true, actionservlet will call the validate () method of actionform bean to check the input before calling the perform () method on the Action object.

2> forward attributes and meanings:

[ID]

[Classname] The fully qualified name of the actionforward class. The default name is org. Apache. Struts. Action. actionforward.

[Name] logical name used by the operation class to access actionforward

[Path] the path of the target resource to be forwarded.

[Redirect] if it is set to true, actionservlet uses the sendredirect () method to forward resources.

3> form-bean attributes and meanings:

[ID]

[Classname] Full name of actionform bean. The default value is org. Apache. Struts. Action. actionformbean.

[Name] Name of the form bean in the relevant scope. This attribute is used to associate the bean with actionmapping.

[Type] Full qualified formbean Class Name (with package name available)

From: http://hi.baidu.com/answer512/blog/item/78765d952824b1097bf480b5.html

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.