he URL extension to use to determine if the request is meant for a Struts action
            用URL扩展名来确定是否这个请求是被用作Struts action,其实也就是设置 action的后缀,例如login.do的\'do\'字。

struts.configuration
           The org.apache.struts2.config.Configuration implementation class
             org.apache.struts2.config.Configuration接口名

struts.configuration.files
           A list of configuration files automatically loaded by Struts
            struts自动加载的一个配置文件列表

struts.configuration.xml.reload
           Whether to reload the XML configuration or not
            是否加载xml配置(true,false)

struts.continuations.package
            The package containing actions that use Rife continuations
            含有actions的完整连续的package名称

struts.custom.i18n.resources
           Location of additional localization properties files to load
            加载附加的国际化属性文件(不包含.properties后缀)

struts.custom.properties
           Location of additional configuration properties files to load
            加载附加的配置文件的位置

struts.devMode
           Whether Struts is in development mode or not
            是否为struts开发模式

struts.dispatcher.parametersWorkaround
           Whether to use a Servlet request parameter workaround necessary for some versions of WebLogic
             (某些版本的weblogic专用)是否使用一个servlet请求参数工作区(PARAMETERSWORKAROUND)

struts.enable.DynamicMethodInvocation
           Allows one to disable dynamic method invocation from the URL
             允许动态方法调用

struts.freemarker.manager.classname
           The org.apache.struts2.views.freemarker.FreemarkerManager implementation class
            org.apache.struts2.views.freemarker.FreemarkerManager接口名

struts.i18n.encoding
           The encoding to use for localization messages
            国际化信息内码

struts.i18n.reload
           Whether the localization messages should automatically be reloaded
            是否国际化信息自动加载

struts.locale
           The default locale for the Struts application
            默认的国际化地区信息

struts.mapper.class
           The org.apache.struts2.dispatcher.mapper.ActionMapper implementation class
             org.apache.struts2.dispatcher.mapper.ActionMapper接口

struts.multipart.maxSize
           The maximize size of a multipart request (file upload)
            multipart请求信息的最大尺寸(文件上传用)

struts.multipart.parser
           The org.apache.struts2.dispatcher.multipart.
           MultiPartRequest parser implementation for a multipart request (file upload)
           专为multipart请求信息使用的org.apache.struts2.dispatcher.multipart.MultiPartRequest解析器接口(文件上传用)

struts.multipart.saveDir
           The directory to use for storing uploaded files
            设置存储上传文件的目录夹

struts.objectFactory
           The com.opensymphony.xwork2.ObjectFactory implementation class
            com.opensymphony.xwork2.ObjectFactory接口(spring)

struts.objectFactory.spring.autoWire
           Whether Spring should autoWire or not
            是否自动绑定Spring

struts.objectFactory.spring.useClassCache
           Whether Spring should use its class cache or not
            是否spring应该使用自身的cache

struts.objectTypeDeterminer
           The com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation class
             com.opensymphony.xwork2.util.ObjectTypeDeterminer接口

struts.serve.static.browserCache
   If static content served by the Struts filter should set browser caching header properties or not
            是否struts过滤器中提供的静态内容应该被浏览器缓存在头部属性中

struts.serve.static
           Whether the Struts filter should serve static content or not
            是否struts过滤器应该提供静态内容

struts.tag.altSyntax
           Whether to use the alterative syntax for the tags or not
            是否可以用替代的语法替代tags

struts.ui.templateDir
           The directory containing UI templates
            UI templates的目录夹

struts.ui.theme
           The default UI template theme
            默认的UI template主题

struts.url.http.port
           The HTTP port used by Struts URLs
            设置http端口

struts.url.https.port
           The HTTPS port used by Struts URLs
            设置https端口

struts.url.includeParams
           The default includeParams method to generate Struts URLs
           在url中产生 默认的includeParams

struts.velocity.configfile
           The Velocity configuration file path
            velocity配置文件路径

struts.velocity.contexts
           List of Velocity context names
            velocity的context列表

struts.velocity.manager.classname
           org.apache.struts2.views.velocity.VelocityManager implementation class
            org.apache.struts2.views.velocity.VelocityManager接口名

struts.velocity.toolboxlocation
           The location of the Velocity toolbox
            velocity工具盒的位置
struts.xslt.nocache
           Whether or not XSLT templates should not be cached
            是否XSLT模版应该被缓存

例如:

struts.i18n.reload=true
struts.devMode = true
struts.configuration.xml.reload=true
struts.continuations.package=org.apache.struts2.showcase
struts.custom.i18n.resources=globalMessages
#struts.action.extension=jspa
struts.url.http.port = 8080
struts.freemarker.manager.classname=customFreemarkerManager
struts.serve.static=true
struts.serve.static.browserCache=false
struts.codebehind.defaultPackage=person

转载于:https://www.cnblogs.com/irocfly/archive/2012/02/29/2373298.html

struts2 struts.xml 配置(转载)相关推荐

  1. 深入详解Struts2——struts.xml配置之Result配置详解

    一个result代表了一个可能的输出,当Action类的方法执行完成时,它返回一个字符串的结果码,框架根据这个结果码选择对应的result,向用户输出. result元素有两个属性 name:指定re ...

  2. struts2.1.6教程二、struts.xml配置及例程

    1.配置文件的优先级 在struts2中一些配置(比如常量)可以同时在struts-default.xml(只读性),strtus-plguin.xml(只读性),struts.xml,struts. ...

  3. 转载 - Struts2基于XML配置方式实现对action的所有方法进行输入校验

    出处:http://www.cnblogs.com/Laupaul/archive/2012/03/15/2398360.html http://www.blogjava.net/focusJ/arc ...

  4. struts2配置详解(struts.xml配置详解)

    本文转自:http://www.cnblogs.com/fmricky/archive/2010/05/20/1740479.html struts.xml是我们在开发中利用率最高的文件,也是Stru ...

  5. struts2.0.14 web.xml,struts.xml配置

    web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp ...

  6. struts.xml配置详解

    2019独角兽企业重金招聘Python工程师标准>>> 1. 在struts2中配置常量的方式有三种: 在struts.xml文件中配置         在web.xml文件中配置  ...

  7. struts.xml配置文件结构

    <span style="font-size:24px;"><?xml version="1.0" encoding="UTF-8& ...

  8. struts+hibernate+oracle+easyui实现lazyout组件的简单案例——struts.xml配置详情

    最后我们来看一下struts.xml里面是怎么配置的呢, struts.xml: <?xml version="1.0" encoding="UTF-8" ...

  9. Struts.xml配置返回JSON数据

    2019独角兽企业重金招聘Python工程师标准>>> 测试struts.xml中result参数的不同返回不同的json数据 目的是为了比较result中type不同和result ...

最新文章

  1. ZooKeeper演示案例
  2. python能处理多大的数据包-利用Python进行数据处理(更新)
  3. 全球的weex资源都在这里
  4. 1043 输出PATest(PAT乙级 C++)
  5. Java加密与解密的艺术~AES-GCM-NoPadding实现
  6. 评论:北京“网店新规”将死在问题中
  7. 单机装两个mysql_单机环境下安装多个MySQL服务器
  8. 图像增强(一):randaugment
  9. 计算机辅导资料,计算机二级辅导资料
  10. 迅 捷PDF编辑器去水印
  11. 蚂蚁金服 ant design 下载axure 组件库
  12. Eclipse环境变量配置!
  13. 小白的一周学习汇总!
  14. vscode安装旧版本插件_vscode安装和安装插件
  15. 笔记软件对比之 思源笔记 VS Notion
  16. 迷宫(Maze)项目实现
  17. 武汉大学 计算机学院 衰落,为何武汉大学每年都被黑,武汉大学真的没有实力吗?...
  18. GoogleEarth二次开发平台指南(1) ---如何将谷歌地球嵌入到自定义的窗体中
  19. 十大众筹PC:硅谷新生代如何打造下一代计算机
  20. 深度学习语义分割论文笔记(待完善)

热门文章

  1. python中rjust_Python字符串rjust()和ljust()
  2. 苹果x翻新机序列号开头_Android翻新电话每隔X秒
  3. jqueryui时间插件_满足您所有日历要求的jQueryUI Datepicker插件
  4. 基于OpenCV的计算机视觉入门(5)图像美化(上)
  5. 人生真是圆的,从BASIC开始的程序人生,又回到了BASIC,难道。。。。。
  6. JavaScript模块化开发(一)基础知识
  7. MySQL之Handler_read_*查看索引使用情况
  8. 程序员面试金典——5.6奇偶位交换
  9. Ruby中的类与对象(一)
  10. python语音读取