The meaning of action, forward, Form-bean attribute in Struts-config.xml

Source: Internet
Author: User
Tags object config resource
Xml

1>action Attributes and meanings:

[Path] The relative path of the action class

[Name] The name of the action bean associated with this operation (Actionform)

[Type] The full name of the action class that is connected to this mapping (can have a package name)

[Scope] Scope of the Actionform bean (request or session)

[Prefix]

[Suffix]

[ClassName] The fully qualified name of the class of the Actionmapping object is the default class of Org.apache.struts.action.ActionMapping

[input] Enter the path to the form, and point to the control that the bean must return when an input error occurs

[Unknown] defaults to false. This property is set to True, stating that this action will handle all requests that have not been processed in the entire application, and of course, only one unknown attribute can be set to true in an application system

[Validate] is set to true, Actionservlet calls the Actionform Bean's Validate () method for input checking before calling the Perform () method on the Action object

2>forward Attributes and meanings:

[ID]

[ClassName] The fully qualified name of the Actionforward class, and the default is Org.apache.struts.action.ActionForward

The logical name used by the [name] action class to access Actionforward

Path in response to a forwarded target resource [path]

[REDIRECT] If set to true, Actionservlet use the Sendredirect () method to forward the resource

3>form-bean Attributes and meanings:

[ID]

[ClassName] The fully qualified name of the Actionform bean, and the default value is Org.apache.struts.action.ActionFormBean

Name of the associated scope of the [name] form Bean, which is used to associate the bean with actionmapping

The fully qualified name of the [Type] class Formbean class name (can have package name)



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.