/**是否使用开发模式,不在开发模式下变为false*/

(常用) <constant name = "struts.devmode" value = "true"/>

/**是否每次http请求到达时,系统都重新加载资源文件,不在开发模式下变为false*/

(常用) <constant name = "struts.i18n.reload" value = "true"/>

/**设置浏览器是否缓存静态内容,只有true和false(开发模式下应用false)*/

(常用) <constant name = "struts.serve.static.browsercache" value = "false"/>

-----------------/**指定web应用的默认编码集*/---------------

(常用) |<constant name = "struts.i18n.encoding" value = "UTF-8"/> | -----------------------------------------------------------

(常用) /**指定处理multipart/form-data的mime类型(文件上传)请求的框架,该属性支持cos、pell和jakarta等属性*/ | /**               | *需要使用cos或者pell的文件上传方式,则应该将对应的jar文件复制到web应用中。       | *例如,使用cos上传方式,则需要自己下载cos框架的jar文件,并将该文件放在web-inf/lib路径下     | */

<constant name = "struts.multipart.parser" value = "jakarta"/>      |

/**指定需要struts 2处理的请求后缀,该属性的默认值是action,即所有匹配*.action的请求都由struts 2处理。 *如果用户需要指定多个请求后缀,则多个后缀之间以英文逗号(,)隔开。

(常用) */  <constant name = "struts.action.extension" value = ""/>

/**生成url时是否包含请求参数。该属性接受none、get和all三个属性值*/

(常用)  <constant name = "struts.url.includeparams" value = "all"/>

(常用) /**某些java ee服务器,不支持httpservlet request调用getparametermap()方法,此时可以设置该属性值为true来解决该问题。 *该属性的默认值是false。对于weblogic、orion和oc4j服务器,通常应该设置该属性为true */

<constant name = "struts.dispatcher.parametersworkaround" value = ""/>

/**属性设置struts 2是否支持动态方法调用,该属性的默认值是true*/

(常用) <contant name = "struts.enable.dynamicmethodinvocation" value = "true"/>

/**指定xslt result是否使用样式表缓存。当应用处于开发阶段时,该属性通常被设置为true*/

(常用) <constant name = "struts.xslt.nocache" value = "true"/>

/**属性设置当struts.xml文件改变后,系统是否自动重新加载该文件。该属性的默认值是false*/

(常用) <constant name = "struts.configuration.xml.reload" value = "fasle"/>

/**指定web应用的默认locale*/

<constant name = "struts.locale" value = ""/>

/**指定struts 2默认的objectfactory bean,该属性默认值是spring*/

<constant name = "struts.objectfactory" value = "spring"/>

/**指定spring框架的自动装配模式,该属性的默认值是name,即默认根据bean的name属性自动装配*/

<constant name = "struts.objectfactory.spring.autowrite" value = "name"/>

/**该属性指定整合spring框架时,是否缓存bean实例,该属性只允许使用true和false两个属性值*/

<constant name = "struts.objectfactory.spring.useclasscache" value = "true"/>

/**该属性指定struts 2的类型检测机制,通常支持tiger和notiger两个属性值*/

<constant name = "struts.objecttypedeterminer" value = "tiger"/>

/**加载用户自定义的属性文件,不会覆盖struts.properties文件中指定的属性*/

<constant name = struts.custom.properties" value = ""/>

/**将http请求映射到指定action的映射器*/

<constant name = "struts.mapper.class" value = "org.apache.struts2.dispatcher.mapper.defaultactionmapper"/>

/**默认映射器根据请求的前缀与action的name属性完成映射*/

<constant name = "org.apache.struts2.dispatcher.mapper.defaultactionmapper" value = ""/>

/**是否通过jar文件提供静态内容服务,该属性只支持true和false属性值,该属性的默认属性值是true*/

<constant name = "struts.serve.static" value = "true"/>

/**该属性指定加载struts 2配置文件的配置文件管理器*/

<constant name = "struts.configuration" value = "org.apache.struts2.config.defaultconfiguration"/>

/**是否允许在action名中使用斜线,该属性的默认值是false*/

<constant name = "struts.enable.slashesinactionnames" value = "false"/>

/**是否允许在struts 2标签中使用表达式语法*/

<constant name = "struts.tag.altsyntax" value = "true"/>

/**属性指定视图标签默认的视图主题,该属性的默认值是xhtml*/

<constant name = "struts.ui.theme" value = "xhtml"/><!--一般要保持原因,就使用simple-->

/**指定视图主题所需要模板文件的位置,该属性的默认值是template,即默认加载template路径下的模板文件*/

<constant name = "struts.ui.templatedir" value = "template"/>

/**指定模板文件的后缀,该属性的默认属性值是ftl。该属性还允许使用ftl、vm或jsp,分别对应freemarker、velocity和jsp模板*/

<constant name = "struts.ui.templatesuffix" value = "ftl"/>

/**velocity框架所需的velocity.properties文件的位置。该属性的默认值为velocity.properties*/

<constant name = "struts.velocity.configfile" value = ""/>

/**指定velocity框架的context位置,如果该框架有多个context,则多个context之间以英文逗号(,)隔开*/

<constant name = "struts.velocity.contexts" value = ""/>

/**属性指定velocity框架的toolbox的位置*/

<constant name = "struts.velocity.toolboxlocation" value = ""/>

/**指定web应用所在的监听端口。该属性通常没有太大的用户, *只是当struts 2需要生成url时(例如url标签),该属性才提供web应用的默认端口 */ <constant name = "struts.url.http.port" value = ""/>

/**所需要的国际化资源文件,如果有多份国际化资源文件,则多个资源文件的文件名以英文逗号(,)隔开*/

<constant name = "struts.custom.i18n.resources" value = ""/>

/**指定struts 2使用的freemarker管理器*/

<constant name = "struts.freemarker.manager.classname" value = "org.apache.struts2.views.freemarker.freemarkermanager"/>

/**只支持true和false两个属性值,默认值是true。通常无需修改该属性值*/

<constant name = "struts.freemarker.wrapper.altmap" value = "true"/>

/**定struts 2框架默认加载的配置文件,如果需要指定默认加载多个配置文件,则多个配置文件的文件名之间以英文逗号(,)隔开 *属性的默认值为struts-default.xml,struts-plugin.xml,struts.xml */

<constant name = "struts.configuration.files" value = "struts.xml"/>

<!--上传文件的大小限制-->  
<constant name="struts.multipart.maxSize" value=“10701096"/>

constant属性详解的更多相关文章

  1. android:exported 属性详解

    属性详解 标签: android 2015-06-11 17:47 27940人阅读 评论(7) 收藏 举报 分类: Android(95) 项目点滴(25) 昨天在用360扫描应用漏洞时,扫描结果, ...

  2. OutputCache属性详解(一)一Duration、VaryByParam

    目录 OutputCache概念学习 OutputCache属性详解(一) OutputCache属性详解(二) OutputCache属性详解(三) OutputCache属性详解(四)— SqlD ...

  3. OutputCache属性详解(二)一 Location

    目录 OutputCache概念学习 OutputCache属性详解(一) OutputCache属性详解(二) OutputCache属性详解(三) OutputCache属性详解(四)— SqlD ...

  4. OutputCache属性详解(三)— VaryByHeader,VaryByCustom

    目录 OutputCache概念学习 OutputCache属性详解(一) OutputCache属性详解(二) OutputCache属性详解(三) OutputCache属性详解(四)— SqlD ...

  5. OutputCache属性详解(四)— SqlDependency

    目录 OutputCache概念学习 OutputCache属性详解(一) OutputCache属性详解(二) OutputCache属性详解(三) OutputCache属性详解(四)— SqlD ...

  6. WPF依赖属性详解

    WPF依赖属性详解 WPF 依赖属性 英文译为 Dependency Properties,是WPF引入的一种新类型的属性,在WPF中有着极为广泛的应用,在WPF中对于WPF Dependency P ...

  7. HTML video 视频标签全属性详解

    HTML 5 video 视频标签全属性详解   现在如果要在页面中使用video标签,需要考虑三种情况,支持Ogg Theora或者VP8(如果这玩意儿没出事的话)的(Opera.Mozilla.C ...

  8. Android组件---四大布局的属性详解

    [声明] 欢迎转载,但请保留文章原始出处→_→ 文章来源:http://www.cnblogs.com/smyhvae/p/4372222.html Android常见布局有下面几种: LinearL ...

  9. dede的pagelist标签的listsize数字属性详解(借鉴)

    dede的pagelist标签的listsize数字属性详解.见远seo经常用织梦搭建各种网站,有次发现列表页面的分页显示超过div的界限,也就是溢出了或者说是撑破了.后来经过研究发现是pagelis ...

随机推荐

  1. richTextBox插入表格 完整版

    附件 http://files.cnblogs.com/xe2011/richTextBox_InsertTable_Full.rar 调用 richTextBoxTableDlg dlg = new ...

  2. java程序员从笨鸟到菜鸟系列

    http://blog.csdn.net/csh624366188/article/category/888600

  3. Notification与多线程

    来源:南峰子(@南峰子_老驴 ) 链接:http://t.cn/R5swQcR 前几天与同事讨论到Notification在多线程下的转发问题,所以就此整理一下. 先来看看官方的文档,是这样写的: I ...

  4. hdu2044java递推

    一只小蜜蜂... Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Su ...

  5. linux中的帮助命令 分类: linux 学习笔记 ubuntu 2015-07-05 19:07 31人阅读 评论(0) 收藏

    说实话,到目前为止我还是不太习惯使用linux自带的帮助文档,遇到问题都是去查我自己下载的chm格式的命令大全,不过这些帮助命令我们还是有必要了解的. 1.man [要查看的命令名称] 例如想要查看l ...

  6. Android(java)学习笔记172:BroadcastReceiver之 Android广播机制

    Android广播机制 android系统中有各式各样的广播,各种广播在Android系统中运行,当"系统/应用"程序运行时便会向Android注册各种广播.Android接收到广 ...

  7. DOS和UNIX文本文件之间相互转换的方法

    在Unix/Linux下可以使用file命令查看文件类型,如下: file dosfile.txt 使用dos2unix 一般Linux发行版中都带有这个小工具,只能把DOS转换为UNIX文件,命令如 ...

  8. Maven浅析-2 什么是Maven

    1.简单点讲:Maven就是一个项目构建工具.它可以生成一个artifact(component),还可以帮我们管理项目依赖(如附加的组件Filters等). 2.从整体讲:Maven也可以看作一个项 ...

  9. javascript通过字典思想操作数据

    作为一名前端程序猿,相对于后端操作数据的机会较少.然而,有些时候因为一些特殊的原因(如:需要构造成对应插件需要的数据格式,需要返回特定的数据格式等)而不得不对数据进行筛选.重构.相对于后端语言,我们没 ...

  10. DataDictionaryTool 一款生成数据库字典工具支持mysql和oracle

    因为常常查看mysql数据结构,频繁操作.很不爽,于是想把数据表制作成数据字典,于是网上搜的一款工具 DataDictionaryTool ,最终制作成功,分享给大家! 1,此工具需要安装jre ,简 ...