Struts2 common constant Summary

Source: Internet
Author: User
Tags i18n xslt

If you don't talk nonsense, just look at the notes:


<! -- Dynamic method call supports setting true to false by default. --> <constant name = "struts. Enable. dynamicmethodinvocation" value = "true"/> <! -- This attribute sets whether the struts 2 application uses the development mode. if this attribute is set to true, more and more friendly error messages can be displayed when an application error occurs. this attribute only accepts the true and flase values. The default value of this attribute is false. generally, an application sets this attribute to true during development. when the product is released, this attribute is set to false. --> <constant name = "struts. devmode "value =" false "/> <! -- Encoding --> <constant name = "struts. i18n. encoding" value = "UTF-8"/> <! -- Name of the international resource file --> <constant name = "struts. Custom. i18n. Resources" value = "i18n"/> <! -- This attribute sets whether the system reloads the resource file every time an HTTP request arrives (International File Overloading is allowed ). the default value of this attribute is false. setting this attribute to true during development is more conducive to development, but it should be set to false during product release. tip: When this attribute is set to true in the development stage, the international resource file can be re-loaded upon each request, so that developers can see the real-time development effect; this attribute should be set to false in the product release phase to provide response performance. re-loading the resource file for each request will greatly reduce the application performance. --> <constant name = "struts. i18n. reload "value =" false "/> <! -- Topic --> <constant name = "struts. UI. Theme" value = "simple"/> <! -- Region --> <constant name = "struts. locale" value = "zh_cn"/> <! -- Configure to use spring to manage action <constant name = "struts. objectfactory" value = "Spring"/> --> <! -- This property sets whether the browser caches static content. when the application is in the development stage, you can set this attribute to false if you want to obtain the latest response from the server for each request. --> <constant name = "struts. serve. static. browsercache "value =" true "/> <! -- This attribute specifies the maximum number of bytes allowed for the entire request content during struts 2 File Upload. --> <constant name = "struts. multipart. maxsize" value = "10485760"/> <! -- This attribute specifies the framework for processing multipart/form-data mime-type (File Upload) requests. This attribute supports attribute values such as cos, Pell, and Jakarta, that is, it corresponds to the COs File Upload framework, Pell upload, and common-fileupload File Upload framework. the default value of this attribute is Jakarta. note: If you need to upload cos or Pell files, copy the corresponding jar files to the Web application. for example, to use the COs upload method, you need to download the COs framework JAR file, and put the file in the WEB-INF/lib path. <constant name = "struts. multipart. parser "value =" Jakarta "/> --> <! -- Specifies the automatic assembly mode of the Spring framework. The default value of this attribute is name, which means automatic assembly based on the bean name attribute by default. <constant name = "struts. objectfactory. spring. autowire "value =" name "/> --> <! -- This attribute specifies whether the bean instance is cached when the spring framework is integrated. The attribute can only use the values true and false. The default value is true. we do not recommend that you modify this attribute. <constant name = "struts. objectfactory. spring. useclasscache "value =" true "/> --> <! -- This attribute specifies the temporary storage path of the uploaded file. The default value of this attribute is javax. servlet. context. tempdir. <constant name = "struts. multipart. savedir "value =" "/> --> <! -- This attribute specifies the request suffix to be processed by struts 2. The default value of this attribute is action, that is, all matches *. all action requests 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 "/> --> <! -- This attribute sets whether to provide static content services through jar files. This attribute only supports true and false attribute values. The default attribute value of this attribute is true. <constant name = "struts. serve. static "value =" true "/> --> <! -- This property sets whether the browser caches static content. when the application is in the development stage, you can set this attribute to false if you want to obtain the latest response from the server for each request. <constant name = "struts. serve. static. browsercache "value =" true "/> --> <! -- This attribute specifies the suffix of the template file. The default attribute value of this attribute is FTL. this attribute also allows FTL, Vm, or JSP to correspond to freemarker, velocity, and JSP templates respectively. <constant name = "struts. UI. templatesuffix "value =" FTL "/> --> <! -- This attribute is set to struts. whether the system automatically reloads the XML file after it changes. the default value of this attribute is false. <constant name = "struts. configuration. XML. reload "value =" false "/> --> <! -- This attribute specifies the international resource file required by the struts 2 application. If there are multiple international resource files, the names of these resource files are separated by commas. <constant name = "struts. custom. i18n. resources "value =" nationz "/> --> <! -- For some java EE servers, the getparametermap () method cannot be called by httpservlet request. You can set this attribute value to true to solve this problem. the default value of this attribute is false. this attribute should be set to true for WebLogic, Orion, and Solaris servers. <constant name = "struts. dispatcher. parametersworkaround "value =" false "/> --> <! -- Specifies whether to cache the freemarker template. The default value is false. <Constant name = "struts. freemarker. templatescache" value = "true"/> --> <! -- This attribute only supports the values true and false. The default value is true. this attribute value does not need to be modified. <constant name = "struts. freemarker. wrapper. altmap "value =" true "/> --> <! -- This attribute specifies whether the XSLT result is cached in the style sheet. this attribute is usually set to true when the application is in the development stage. When the application is in the product use stage, this attribute is usually set to false. <constant name = "struts. XSLT. nocache "value =" true "/> --> <! -- This attribute specifies the default configuration file loaded by the struts 2 framework. To specify multiple configuration files to be loaded by default, the names of multiple configuration files are separated by commas. the default value for this property is struts-default.xml, struts-plugin.xml, struts. XML, see the attribute value, so you should understand why the struts 2 Framework loads struts by default. XML file. <constant name = "struts. configuration. files "value =" struts-default.xml, struts-plugin.xml, struts. XML "/> --> <! -- Set whether to always select the complete namespace for the er. The default value of this attribute is false. <Constant name = "struts. Mapper. alwaysselectfullnamespace" value = "false"/> --> <! -- The above configuration is detailed description of constant configuration in struts2. Many configurations have been configured by default in default. properties --> <! -- The following is the default configuration of convention in the Convention plug-in struts-plugin.xml --> <! -- Set the Convention plug-in to locate the root path of the view resource. The default value is/WEB-INF/content --> <constant name = "struts. Convention. Result. Path" value = "/page/"/> <! -- Set the delimiter between words with name attribute values when action ing action. The default value is the middle draw line --> <constant name = "struts. Convention. Action. Name. separator" value = "_"/> <! -- The Convention plug-in uses this constant to specify the package as the root package for Action search. The default value is action, actions, struts, strtus2 --> <constant name = "struts. convention. package. locators "value =" actions "/> <! -- If this constant is specified, the Convention will only search for the action class from the package starting with this constant value. --> <Constant name = "struts. Convention. Package. locators. basepackage" value = ""/> <! -- Set the default parent package of the Action mapped to convention. The default value is Convention-default --> <constant name = "struts. Convention. Default. Parent. Package" value = "base"/> <! -- Whether the result type is part of the file name. If the returned value is error, hello_world_error.jsp is true, and hello_world/error is false. JSP <constant name = "struts. convention. result. flatlayout "value =" true "/> --> <! -- Convention: Search for the class name suffix of the action class. The default value is action <constant name = "struts. Convention. Action. suffix" value = "action"/> --> <! -- Whether to disable packet scan action. The default value is false <constant name = "struts. Convention. Action. disablescanning" value = "false"/> --> <! -- Creates an action ing even if there is no @ action annotation. The default value is false <constant name = "struts. Convention. Action. mapallmatches" value = "false"/> --> <! -- Sets whether the class of the Action interface is mapped to action. The default value is true <constant name = "struts. Convention. Action. checkimplementsaction" value = "true"/> --> <! -- Sets whether to convert the name attribute value of action to lowercase letters when action ing action. The default value is true <constant name = "struts. Convention. Action. Name. lowercase" value = "true"/> --> <! -- Disable the action to be searched from the root package of the action. The default value is false <constant name = "struts. Convention. Package. locators. Disable" value = "false"/>>><! -- Specify packages excluded from the search action. The default value is Org. apache. struts. *, org. apache. struts2. *, org. springframework. web. struts. *, org. springframework. web. struts2. *, org. hibernate. * <constant name = "struts. convention. exclude. packages "value =" org. apache. struts. *, org. apache. struts2. *, org. springframework. web. struts. *, org. springframework. web. struts2. *, org. hibernate. * "/> --> <! -- Set whether to redirect to a slash (/). For example, if the user requests/Foo but/Foo does not exist, if this constant is set, it can be redirected to/Foo /. The default value is true <constant name = "struts. Convention. Redirect. to. Slash" value = "true"/> --> <! -- Not very clear. The test result is: if it is set to false, no No Action mapped is reported. It should be whether to execute the execute () method by default <constant name = "struts. convention. action. alwaysmapexecute "value =" true "/> --> <! -- Set whether to always select the namespace at any position before the last diagonal line. The test result is not affected, but is unknown <constant name = "struts. mapper. alwaysselectfullnamespace "value =" true "/> --> <! -- The included jar is generally used for large projects. The action is generally packaged into jar <constant name = "struts. Convention. Action. fileprotocols" value = "jar"/> --> <! -- Whether to automatically reload action <constant name = "struts. Convention. classes. Reload" value = "false"/> --> <! -- The official website only indicates that the setting is required in JBoss. The situation is unknown <constant name = "struts. Convention. Exclude. parentclassloader" value = "true"/> -->



Struts2 common constant Summary

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.