Webwork. properties configuration details

Source: Internet
Author: User
Tags configuration settings i18n
Document directory
  • File description
Webwork. properties file description

Default. properties is the default configuration file of Webwork. It can be overwritten by the webwork. properties file in the root directory of classpath.

Configure the factory to specify locale, encoding Object Factory Automatic Assembly policy class cache default Object type finalist File Upload settings custom configuration default URL ing processor default suffix whether static files by FilterDispatcher service tag syntax set development mode set international resource settings theme and template set Configuration automatic update settings Velocity configuration settings URL-related settings custom international resource application server-related settings FreeMarker-related settings custom tresult-related settings

Specifies the Configuration used to configure webwork.
You can expand com. opensymphony. webwork. config. Configuration to create your own method to obtain the Configuration parameters and send them to webwork.

# webwork.configuration=com.opensymphony.webwork.config.DefaultConfiguration

Used to set your default locale and encoding scheme

# webwork.locale=en_US
webwork.i18n.encoding=UTF-8

If this parameter is specified, the default ojbect factory can be overwritten here.
Note: abbreviations are supported in some cases, such as "spring". Instead, you can provide the name of a com. opensymphony. xwork. ObjectFactory subclass.

# webwork.objectFactory = spring

Specifies the automatic assembly logic when SpringObjectFactory is used.
Valid values include: name, type, auto, and constructor (name by default)

webwork.objectFactory.spring.autoWire = name

Identifies webwork-spring integration, if the class instance should be cached
This is possible until the future Spring version makes it possible, otherwise it will remain true
Do not change unless you know exactly what you are doing
Valid values include true and false (true is the default value)

webwork.objectFactory.spring.useClassCache = true

If this parameter is set, the default object type can be overwritten.

Note: abbreviations are supported in some cases, such as "tiger" or "notiger"
Instead, you can provide the name of a com. opensymphony. xwork. util. ObjectTypeDeterminer implementation class.
Note: if there is a xwork-tiger.jar in classpath, GenericsObjectTypeDeterminer will be used by default
Disable tiger support. Here the "notiger" attribute value is used.

#webwork.objectTypeDeterminer = tiger
#webwork.objectTypeDeterminer = notiger

It is used to process http post requests. It is encoded in the MIME-type multipart/form-data mode.

# webwork.multipart.parser=cos
# webwork.multipart.parser=pell
webwork.multipart.parser=jakarta
  1. By default, the saved directory uses javax. servlet. context. tempdir.
webwork.multipart.saveDir=
webwork.multipart.maxSize=2097152

Load custom property files (does not overwrite webwork. properties !)

# webwork.custom.properties=application,com/webwork/extension/custom

It is used to process how request URLs are mapped to actions, or vice versa (users can implement their own processing)

webwork.mapper.class=com.opensymphony.webwork.dispatcher.mapper.DefaultActionMapper

DefaultActionMapper settings
You can provide a comma-separated list, such as webwork. action. extension = action, jnlp, do

webwork.action.extension=action

Settings used by FilterDispatcher
If it is true, WebWork will provide services for static files in its jar package.
If it is false, the static file must be accessible under <context_path>/webwork.

webwork.serve.static=true

In most cases, alternative syntax requires % {} to calculate the value of the string attribute of the tag.

webwork.tag.altSyntax=true

When set to true, WebWork is more friendly to developers, including:

  • Webwork. i18n. reload = true
  • Webwork. configuration. xml. reload = true
  • Different debugging information or ignored problems are error messages.
    For example, under normal circumstances, a request for foo. action? SomeUnknownField = true will be ignored (any value from the web is untrusted ).
    Therefore, it may be useful to remind you immediately when these errors occur during development.
webwork.devMode = false

Note: when it is set to true, all input with a name must have a corresponding setter; otherwise, an error is returned. If you do not need it, delete the name.

If this parameter is set to true, the resource package is automatically reloaded in each request.
This is convenient during development, but should not be used in production.

webwork.i18n.reload=false

Standard UI theme
Changing this will map the default template of that path to output JSP control labels.

webwork.ui.theme=xhtml
webwork.ui.templateDir=template

Set the default template type, which can be ftl, vm, and jsp.

webwork.ui.templateSuffix=ftl

The configuration is automatically reloaded, which will cause the configuration to reload xwork. xml. When it changes

webwork.configuration.xml.reload=false

Location of the velocity. properties file. The default value is velocity. properties.

# webwork.velocity.configfile = velocity.properties

Comma-separated VelocityContext class name to link to WebWorkVelocityContext

# webwork.velocity.contexts =

Used to build a URL, such as UrlTag

webwork.url.http.port = 80
webwork.url.https.port = 443

Load custom default Resource Packages (if there are multiple, separate them with commas)

# webwork.custom.i18n.resources=testmessages,testmessages2

Some app servers cannot process HttpServletRequest. getParameterMap (), and often use WebLogic, Orion, and Solaris.

webwork.dispatcher.parametersWorkaround = false

Configure the Freemarker Manager class to use
Allows you to insert custom Freemarker Manager.
Com. opensymphony. webwork. views. freemarker. FreemarkerManager must be extended

#webwork.freemarker.manager.classname=com.opensymphony.webwork.views.freemarker.FreemarkerManager

View WebWorkBeanWrapper's javadoc for more information

webwork.freemarker.wrapper.altMap=true

Configure the javastresult class to use stylesheet cache.
Set to true during development and false during production.

webwork.xslt.nocache=false
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.