Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

(tick) 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 any of these properties, specify 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 (insdie webworkinside struts2.jar):.

Panel
Code Block
titlestruts-default.properties
Wiki Markup
{snippet:lang=none|id=complete_file|url=struts2/core/src/main/resources/org/apache/struts2/default.properties}
### This can be used to set your locale webwork.locale=en_US ### 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 =