Struts2 configuration file meaning of various tags

Source: Internet
Author: User
Tags i18n

Recently learning Struts2, in the configuration file encountered a lot of tags, different meanings. In order to facilitate learning, then the various labels of the writing and meaning summarized as follows: (update at any time)

<struts>

<!--turn on Use development mode (you can debug a program without restarting the service after changing the Struts.xml file), with detailed error hints. The Ps:value value of false is to turn off development mode (?), which is true to turn on development mode--
<constant name= "Struts.devmode" value= "true"/>
<!--Specify global internationalized resource Files--
<constant name= "struts.custom.i18n.resources" value= "mess"/>
<!--Specify the character set used for internationalized encoding--
<constant name= "struts.i18n.encoding" value= "UTF-8"/>
<!--all action definitions should be placed under the package--
<package name= "Unique, indicates that the name of the package" namespace= "represents the namespace, as part of the access path" extends= "designates the contract, where Struts-default defines the core functions of struts" >
<action name= "Login" class= "Com.bell.action.LoginAction" >
<!--define a mapping between three logical views and physical resources--
<result name= "Input" >/login.jsp</result>
<result name= "Error" >/error.jsp</result>
<result name= "Success" >/welcome.jsp</result>
</action>
</package>
</struts>

Struts2 configuration file meaning of various tags

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.