Struts. properties attribute file configuration

Source: Internet
Author: User

It is the configuration file of struts2, which is called the default. properties file by default. It configures the default struts configuration, for example, the default configuration of struts2

Action is defined in this file.

This file provides a mechanism to change the default behavior of the framework. In general, if you do not intend to make debugging more convenient, you do not need to change this file. In the "struts. all properties defined in the properties file can be found in "Web. configure the "init-Param" label in the XML file, or use the "struts. modify the "constant" label in the XML file.

This file is located in the jar package of struts2. We cannot modify the read-only file. How can we modify the default configuration of strut2?

Solution: Create a struts. properties file in the root directory of classpath.

For example, modify the default Suffix of struts2 to. Do.

 

Write in struts. properties File

Struts. Action. Extension = do

 

Configuration explanation for struts. properties:

 

Struts. Action. Extension

Sets the suffix of struts2. The default value is action.

Struts. Configuration

Org. Apache. struts2.config. Configuration Interface Name

Struts. configuration. Files

A list of configuration files automatically loaded by struts,

Struts-default.xml, struts-plugin.xml, Struts. xml loaded by default

Struts. configuration. xml. Reload

Whether to load xml configuration (true, false). The default value is true.

Struts. continuations. Package

Complete continuous package name containing actions

Struts. Custom. i18n. Resources

Load the additional international property file (excluding the. properties suffix)

Struts. Custom. Properties

Location of the attached configuration file

Struts. devmode

Struts development mode?

Struts. Dispatcher. parametersworkaround

(For some versions of Weblogic) whether to use a Servlet Request Parameter Workspace

(Parametersworkaround)

Struts. Enable. dynamicmethodinvocation

Allow dynamic method calls and use wildcards to dynamically call actions

Struts. freemarker. Manager. classname

Org. Apache. struts2.views. freemarker. freemarkermanager Interface Name

Struts. i18n. Encoding

Inner code of international information, number, UTF-8 by default

Struts. i18n. Reload

Whether to automatically load International Information

Struts. locale

Default International region information

Struts. Mapper. Class

Org. Apache. struts2.dispatcher. Mapper. actionmapper Interface

Struts. multipart. maxsize

Maximum size of multipart request information (for file upload)

Struts. multipart. parser

Org. Apache. struts2.dispatcher. multipart. multipartrequest parser interface for multipart request information (for file upload)

Struts. multipart. savedir

Set the directory folder for storing uploaded files

Struts. objectfactory

Com. opensymphony. xwork2.objectfactory interface (spring)

Struts. objectfactory. Spring. autowire

Automatically bound to spring?

Struts. objectfactory. Spring. useclasscache

Whether spring should use its own Cache

Struts. objecttypedeterminer

Com. opensymphony. xwork2.util. objecttypedeterminer Interface

Struts. Serve. Static. browsercache

Whether the static content provided by the struts filter should be cached by the browser in the header attribute

Struts. Serve. Static

Does struts filter provide static content?

Struts. Tag. altsyntax

Can I replace tags with an alternative syntax?

Struts. UI. templatedir

Ui templates directory folder

Struts. UI. Theme

Default UI template topic

Struts. url. http. Port

Set http port

Struts. url. HTTPS. Port

Set HTTPS Port

Struts. url. includeparams

Generate the default includeparams in the URL

Struts. Velocity. configfile

The path of the velocity configuration file. The default value is velocity. properties.

Struts. Velocity. contexts

Context list of Velocity

Struts. Velocity. Manager. classname

Org. Apache. struts2.views. Velocity. velocitymanager Interface Name

Struts. Velocity. toolboxlocation

Whether the location of the velocity Toolbox should be cached by the XSLT Template

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.