All properties can also be set using Constant Configuration in an XML configuration file.
The framework WebWork uses a number of properties that can be changed to fit your needs. To change themany of these properties, specify your values in webwork.properties in the property key and value in an struts.properties
file. The properties file can be locate anywhere on the classpath, but it is typically found under /WEB-INF/classes
.
The list of properties can be found in struts-default.properties
(inside webwork struts2.jar
):.
Panel |
---|
Code Block |
---|
title | struts-default.properties |
---|
|
Wiki Markup |
---|
{snippet:lang=none|id=complete_file|url=struts2/core/src/main/resources/org/apache/struts2/default.properties} |
### These can be used to set the default HTTP and HTTPS ports
webwork.url.http.port = 80
webwork.url.https.port = 443
### This can be used to set your locale and encoding scheme
webwork.locale=en_US
webwork.i18n.encoding=ISO-8859-1
### Parser to handle HTTP POST requests, encoded using the MIME-type multipart/form-data
#webwork.multipart.parser=cos
webwork.multipart.parser=pell
# uses javax.servlet.context.tempdir by default
webwork.multipart.saveDir=
webwork.multipart.maxSize=2097152
### Load custom property files (does not override webwork.properties!)
webwork.custom.properties=application,com/webwork/extension/custom
# extension for actions. This uses by the webwork:form tag
webwork.action.extension=action
### Standard UI theme
# Change this to reflect which path should be used for JSP control tag templates by default
webwork.ui.theme=xhtml
webwork.ui.templateDir=template
### Configuration reloading
# This will cause the configuration to reload xwork.xml when it is changed
webwork.configuration.xml.reload=false
### Location of velocity.properties file. defaults to velocity.properties
webwork.velocity.configfile = velocity.properties
### Comma separated list of VelocityContext classnames to chain to the WebWorkVelocityContext
webwork.velocity.contexts =
### Override the default VelocityManager with a custom implementation
webwork.velocity.manager.classname=path.and.classname
|