Constant -- Resolution

Source: Internet
Author: User

1. <! -- Specify the default sequence set of the Web application, which is equivalent to calling the setCharacterEncoding method of HttpServletRequest -->

<Constant name = "struts. i18n. encoding" value = "UTF-8"/>


2. <! -- This attribute specifies the request suffix to be processed by Struts 2. The default value of this attribute is action, that is, all requests matching *. action are processed by Struts 2. If you need to specify multiple request suffixes, multiple suffixes are separated by commas (,). -->
<Constant name = "struts. action. extension" value = "do"/> (the Action class name is used when you directly access the methods in Ation! Method Name. do)

3. <! -- Set whether the browser caches static content. The default value is true (used in the production environment). It is best to disable it during development. -->
<Constant name = "struts. serve. static. browserCache" value = "false"/>
 

4. <! -- When the struts configuration file is modified, whether the system automatically reloads the file. The default value is false (used in the production environment). It is best to open the file during development. -->
<Constant name = "struts. configuration. xml. reload" value = "true"/>
5. <! -- Used in the startup mode to print more detailed error information -->
<Constant name = "struts. devMode" value = "true"/>

6. <! -- View topic recognized by the user -->
<Constant name = "struts. ui. theme" value = "simple"/>
 

7. <! -- This attribute specifies that the action in Struts 2 is created by the Spring container -->
<Constant name = "struts. objectFactory" value = "spring"/>


 

Related Article

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.