
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、perties完整文件suts default properties (can be overrden by a perties in the root of the classpath) specifies the configuration us to configure struts one could tend org.apache.struts2.config.configuration to build one's customize way of getting the configurations parameters into
2、struts struts.configuration=org.apache.struts2.config.defaultconfiguration this can be u to your default locale and eoding scheme struts.locale=en_us struts.i18n.encoding=utf-8 if specified, the default object factory can be overrien here note: short-hand notation is pported in some cases, such as &
3、quot;spring" alternatively, you can provide a com.opensymphony.xwork2.objectfactory subclass name here struts.objectfactory = spring specifies the autowiring logic when using the springobjectfactory. valid values are: name, type, auto, and constructor (name is the default) struts.objectfactory.
4、spring.autowire = name indies to the struts-spring integration if class instances should be cached this should, until a future spring release makes it possible, be left as true un you know exactly what you are doing! valid values are: true, fae (true is the default) struts.objectfactory.spring.usecl
5、asscache = true ensures the autowire strategy is always respected. valid values are: true, false (false is the default) struts.objectfactory.spring.autowire.alwaysrespect = false if specified, the default object type deteiner can be overridden here note: short-hand notation is supported in some case
6、s, such as "tiger" or "notiger" alternatively, you can provide a com.opensymphony.xwork2.util.objecttypedeterminer implementation name here note: by default, com.opensymphony.xwork2.util.defaultobjecttypedeterminer is used handles type detection using generics. com.opensymphony.x
7、work2.util.genericsobjecttypedeterminer was deprecated since xwork 2, it's functions are integrated in defaultobjecttypedeterminer now. to disable tiger support use the "notiger" property value here. struts.objecttypedeterminer = tiger struts.objecttypedeterminer = notiger parser to ha
8、ndle http post requests, encoded using the mime-type multipart/form-data struts.multipart.parser=cos struts.multipart.parser=pell struts.multipart.parser=jakarta uses javax.servlet.context.tempdir by default struts.multipart.savedir= struts.multipart.maxsize=2097152 load custom property files (does
9、not override perties!) perties=application,org/apache/struts2/extension/custom how request urls are mapped to and from actions struts.mapper. ' target='_blank'>patcher.mapper.defaultactionmapper used by the defaultactionmapper you may provide a comma separat
10、ed list, e.g. struts.action.extension=action,jnlp,do the blank extension allows you to match directory listings as well as pure action names without interfering with ic resources. struts.action.extension=action, used by filterdispatcher if true then struts serves static content from inside its jar.
11、if false then the static content must be available at context_path /struts struts.serve.static=true used by filterdispatcher this is good for development where one wants changes to the static content be fetch on each request. note: this will only have effect if struts.serve.static=true if true - str
12、uts will out header for static contents such that they will be cached by web browsers (using date, cache-content, pragma, expires) headers). if false - struts will write out header for static contents such that they are not to be cached by web browser (using cache-content, pragma, expires headers) s
13、truts.serve.static.browsercache=true set this to false if you wish to disable implicit dynamic method invocation via the url request. this includes urls like foo!bar.action, as well as params like method:bar (but not action:foo). an alternative to implicit dynamic method invocation is to use wildcar
14、d maps, such as action name="*/*" method="2" struts.dynamicmethodinvocation = true set this to true if you wish to allow slashes in your action names. if false, actions names cannot have slashes, and will be accessible via any directory prefix. this is the traditional behavior ex
15、pected of webwork applications. setting to true is useful when you want to use wildcards and store values in the url, to be extracted by wildcard patterns, such as action name="*/*" method="2" to match "/foo/edit" or "/foo/save". struts.enable.slashesinactionn
16、ames = false use alternative syntax that requires % in most places to uate essions for string attributes for tags struts.tag.altsyntax=true when set to true, struts will act much friendly for developers. this includes: - struts.i18n.reload = true - struts.configuration.xml.reload = true - raising va
17、rious debug or ignorable problems to errors for example: normally a request to foo.action?someunknownfield=true should be ignored (given that any value can come from the web and it should not be trusted). however, ring development, it may be useful to know when these errors are happening and be told
18、 of them right away. struts.devmode = false when set to true, resource bundles will be reloaded on _every_ request. this is good during development, but should never be used in production struts.i18n.reload=false standard ui theme change this to reflect which path should be used for jsp control tag
19、templates by default struts.ui.theme=xhtml struts.ui.templatedir=template sets the default template type. either ftl, vm, or jsp struts.ui.templatesuffix=ftl configuration reloading this will cause the configuration to reload struts.xml when it is changed struts.configuration.xml.reload=false locati
20、on of perties file. defaults to perties struts.velocity.configfile = perties comma separated list of velocitycontext classnames to chain to the strutsvelocitycontext struts.velocity.contexts = location of the velocity toolbox struts.velocity.toolboxlocation= used
21、to build urls, such as the urltag struts.url.http.port = 80 struts.url.https.port = 443 possible values are: none, get or all struts.url.includeparams = get load custom default resource bundles struts.custom.i18n.resources=testmessages,testmessages2 workaround for some app servers that don't han
22、dle httpservletrequest.getparametermap() often used for weblogic, orion, and oc4j struts.dispatcher.parametersworkaround = false configure the freemarker manager class to be used allows user to plug-in customised freemarker manager if necessary must extends off org.apache.struts2.views.marker.freemarkermanager struts.freemarker.manager.classname=org.apache.struts2.views.freemarker.freemarkermanager enables caching of freemarker templates has the same e
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 四年级下册科学教学设计-1.3《种子长出了根》教科版(含活动手册)
- 七年级历史下册 第一单元 第1课 隋朝的统一与灭亡教学设计 新人教版
- 17 盼 教学设计-2024-2025学年统编版语文六年级上册
- 减免租房佣金合同范本
- 餐饮服务员餐中服务培训
- 9 古诗三首 从军行教学设计-2023-2024学年五年级下册语文统编版
- 图形的放大与缩小(教学设计)-2024-2025学年六年级下册数学人教版
- 防踩踏推拉安全教育小班
- 2024年秋新人教版八年级上册物理教学课件 第二章 声现象 第3节 声的利用
- 7.1 归纳推理及其方法 课件-高中政治统编版选择性必修三逻辑与思维
- 设备日常点检记录表
- 小学道德与法治-和平是世界潮流教学课件设计
- 国家OTC药品目录(全部品种)
- 格力电器发展能力分析
- 人教版八年级美术下册全册完整课件
- 斯伦贝谢地质导向
- 沟槽式连接管道工程技术规程
- 境外汇款申请书样板
- 无呕病房工作要点
- 深基坑支护与开挖专项施工方案
- 林业基础知识考试复习题库(浓缩500题)
评论
0/150
提交评论