Serial number |
Method |
Description |
1 |
<constant name= "struts.i18n.encoding" value= "UTF-8"/> |
Specifies the Web App default encoding set, rather calling the Setcharacterencoding method of HttpServletRequest |
2 |
<constant name= "struts.action.extension" value= "Do"/> |
Specifies that the request suffix needs to be struts2, and that the default value of the property is action, which means that all requests *.action handled by STRUTS2. If the user needs to specify multiple suffixes, the suffixes are separated by commas. |
3 |
<constant name= "Struts.serve.static.browserCache" value= "false"/> |
Sets whether the browser caches static content, the default value is True (used in a production environment), and the development phase is best off. |
4 |
<constant name= "Struts.configuration.xml.reload" value= "true"/> |
When the configuration file for struts is modified, the system automatically reloads the file, which defaults to false (production environment is used) and the development phase is best opened |
5 |
<constant name= "Struts.devmode" value= "true"/> |
Development mode so that more detailed error messages can be printed |
6 |
<constant name= "Struts.ui.theme" value= "simple"/> |
Default View Theme |
7 |
<constant name= "struts.objectfactory" value= "Spring"/> |
Specifies that the action in Struts2 is created by the SPIRNG container |
8 |
<constant name= "Struts.objectFactory.spring.autoWrite" value= "name"/> |
Specifies the spring framework's automatic assembly mode, which defaults to name, which is automatically assembled by default based on the bean's Name property |
9 |
<constant name= "Struts.objectFactory.spirng.useClassCache" value= "true"/> |
Specifies whether the bean instance is cached when the spring framework is consolidated, which is true by default, and is generally not recommended for modifying the property value. |
10 |
<constant name= "Struts.multipart.parser" value= "Jakarta"/> |
This property specifies the framework that handles the MIME type (file upload) request of Multipart/form-data, which supports attribute values such as Cos,pell and Jakarta, which correspond to the file upload framework using the COS, respectively. Pell upload and Common-fileupload file upload framework. The default value for this property is Jakarta. Note: If you need to use the COS or Pell file Upload method, you should copy the corresponding jar file to your Web app. For example, using the Cos upload method, you need to download the COS framework's jar file yourself and place the file under the Web-inf/lib path |
11 |
<constant name= "Struts.multipart.saveDir" value= ""/> |
This property specifies the temporary save path for the uploaded file, and the default value for this property is Javax.servlet.context.tempdir |
12 |
<constant name= "struts.multipart.maxSize" value= "100000000000000000"/> |
Specifies the maximum number of bytes allowed for the entire request content on the Struts2 file. |
13 |
<constant name= "Struts.serve.static" value= "true"/> |
This property sets whether to provide a static content service through a jar file, which only supports the true and false property values, which is true for the default property value of the property. |
14 |
<constant name= "Struts.i18n.reload" value= "false"/> |
This property sets whether the system reloads the resource file (allowing internationalized file overloading) every time an HTTP request arrives. This property defaults to false. Setting this property to true during development is more beneficial for development, but should be set to false during the product release phase. Hint: The development phase sets this property to True to reload the internationalized resource file on each request, allowing developers to see real-time development effects, and the product release phase should set this property to False to provide response performance. Reloading the resource file for each request can greatly reduce the performance of the application |
15 |
<constant name= "Struts.ui.templateSuffix" value= "FTL"/> |
This property specifies the suffix of the template file, which is the default property value of FTL. This property also allows the use of FTL, VMS, or JSPs to correspond to freemarker, velocity, and JSP templates, respectively |
16 |
<constant name= "struts.custom.i18n.resources" value= "Nationz"/> |
This attribute specifies the Internationalized resource files required by the Struts 2 application, and if there are multiple internationalized resource files, the file names of multiple resource files are separated by commas (,). |
17 |
<constant name= "Struts.dispatcher.parametersWorkaround" value= "false"/> |
For some Java EE servers, the HttpServlet request call Getparametermap () method is not supported, and you can set the property value to True to resolve the problem. The default value for this property is false. For WebLogic, Orion and OC4J servers, which should normally be set to true for this property |
18 |
<constant name= "Struts.freemarker.templatesCache" value= "true"/> |
Specifies whether the Freemarker template is cached. Default Value Fasle |
19 |
<constant name= "Struts.freemarker.wrapper.altMap" value= "true"/> |
The default value is true, usually without modification |
20 |
<constant name= "Struts.xslt.nocache" value= "false"/> |
This property specifies whether the XSLT result uses the stylesheet cache. This property is usually set to True when the app is in development, and is usually set to False when the app is in the product usage phase. |
21st |
<constant name= "Struts.configuration.files" value= "Struts-default.xml,struts-plugin.xml"/> |
This property specifies the configuration file that the Struts 2 framework loads by default, and if you need to specify that multiple profiles are loaded by default, the file names for multiple profiles are separated by commas (,). The default value for this property is Struts-default.xml,struts-plugin.xml, Struts.xml, see this property value, so you should understand why the Struts 2 framework loads the Struts.xml file by default |
22 |
<constant name= "Struts.mapper.alwaysSelectFullNamespace" value= "false"/> |
Sets whether the mapper always selects the full namespace. The default value of this property is False |
23 |
<constant name= "Struts.convention.result.path" value= "/web-inf/content/"/> |
Sets the root path of the Convention plug-in Location view resource. The default value is/web-inf/content |
24 |
<constant name= "struts.convention.action.package" value= "Default"/> |
The Convention plugin specifies the package as the root package with this constant. |
25 |
<constant name= "struts.convention.action.disableScanning" value= "false"/> |
whether the action was searched from the package |
26 |
<constant name= "Struts.convention.exclude.parentClassLoader" value= "true"/> <constant name= "Struts.convention.action.fileProtocols" value= "Jar,zip"/> |
The official only shows that JBoss needs to be set |
27 |
<constant name= "Struts.convention.action.includeJars" value= ". *?/_wl_cls_gen.*?jar (!/)?" /> |
Contains the action in which jar packages. Comma-delimited string |
28 |
<constant name= "Struts.convention.package.locators" value= "action"/> |
Determine the path to the search package, as long as the package ending with action is searched. |
29 |
<constant name= "Com.chinacnd.allowed.images" value= "Gif,jpeg,jpg,png,bmp"/> |
Image suffix can be uploaded |
30 |
<constant name= "Struts.action.excludePattern" value= "/shitservlet,.*\\.nofilter"/> |
Struts2 Troubleshooting part of the path |