Meaning of struts-config.xml Properties

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)

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.