`
mixer_a
  • 浏览: 363451 次
社区版块
存档分类
最新评论

Configuration reference

 
阅读更多

Add aconstantelement to your struts config file to change the value of a configuration setting, like:

<constant name="struts.convention.result.path" value="/WEB-INF/mytemplates/"/>
Name Default Value Description
struts.convention.action.alwaysMapExecute true Set to false, to prevent Convention from creating a default mapping to "execute" when there are other methods annotated as actions in the class
struts.convention.action.includeJars Comma separated list of regular expressions of jar URLs to be scanned. eg. ".myJar-0\.2.,.thirdparty-0\.1."
struts.convention.action.packages An optional list of action packages that this should create configuration for (they don't need to match a locator pattern)
struts.convention.result.path /WEB-INF/content/ Directory where templates are located
struts.convention.result.flatLayout true If set to false, the result can be put in its own directory: resultsRoot/namespace/actionName/result.extension
struts.convention.action.suffix Action Suffix used to find actions based on class names
struts.convention.action.disableScanning false Scan packages for actions
struts.convention.action.mapAllMatches false Create action mappings, even if no @Action is found
struts.convention.action.checkImplementsAction true Check if an action implements com.opensymphony.xwork2.Action to create an action mapping
struts.convention.default.parent.package convention-default Default parent package for action mappins
struts.convention.action.name.lowercase true Convert action name to lowercase
struts.convention.action.name.separator - Separator used to build the action name, MyAction -> my-action. This character is also used as the separator between the action name and the result in templates, like action-result.jsp
struts.convention.package.locators action,actions,struts,struts2 Packages whose name end with one of these strings will be scanned for actions
struts.convention.package.locators.disable false Disable the scanning of packages based on package locators
struts.convention.exclude.packages org.apache.struts.*,
org.apache.struts2.*,
org.springframework.web.struts.*,
org.springframework.web.struts2.*,
org.hibernate.*
Packages excluded from the action scanning
struts.convention.package.locators.basePackage If set, only packages that start with its value will be scanned for actions
struts.convention.relative.result.types dispatcher,velocity,freemarker The list of result types that can have locations that are relative and the result location (which is the resultPath plus the namespace) prepended to them
struts.convention.redirect.to.slash true A boolean parameter that controls whether or not this will handle unknown actions in the same manner as Apache, Tomcat and other web servers. This handling will send back a redirect for URLs such as /foo to /foo/ if there doesn't exist an action that responds to /foo
struts.convention.classLoader.excludeParent true Exclude URLs found by the parent class loader from the list of URLs scanned to find actions (needs to be set tofalsefor JBoss 5)
struts.convention.action.eagerLoading false If set, found action classes will be instantiated by the ObjectFactory to accelerate future use, setting it up can clash with Spring managed beans
ChildrenShow Children
分享到:
评论

相关推荐

    ZK 6.5.0 Configuration Reference

    ### ZK 6.5.0 Configuration Reference #### web.xml `web.xml` 是一个重要的配置文件,在 Java Web 应用程序中用于定义各种初始化参数、过滤器、监听器等。在 ZK 6.5.0 中,该文件被用来配置与 ZK 相关的各种组件...

    Apache Tomcat 8 Configuration Reference

    Table of Contents Introduction ...Automatic Context Configuration Context Parameters Environment Entries Lifecycle Listeners Request Filters Resource Definitions Resource Links Transaction

    Apache Tomcat 6.0 Configuration Reference

    The Context Container Table of Contents ...Automatic Context Configuration Context Parameters Environment Entries Lifecycle Listeners Request Filters Resource Definitions Resource Links Transaction

    HPE Comware 7 NETCONF XML API Reference.pdf

    HPE Comware 7 NETCONF XML API Reference是Hewlett Packard Enterprise(HPE)发布的官方文档,主要面向H3C设备的网络编程人员和系统管理员。NETCONF(网络配置协议)是一种基于XML的协议,用于配置和管理系统网络...

    OpenStack Configuration Reference

    《OpenStack配置参考手册》是一本面向系统管理员的文档,旨在帮助他们查找OpenStack的配置选项。本书包含了一个自动生成功能,它能够从各个项目代码中生成配置选项及其描述,并且提供了样本配置文件。...

    ZK 5.0.5 Component Reference

    ZK 5.0.5 Component Reference ZK 5.0.5 Configuration Reference ZK 5.0.5 Style Guide ZK 5.0.5 ZUML Reference

    iphone Configuration Profile Reference

    A configuration profile is an XML file that allows you to distribute configuration information. If you need to configure a large number of devices or to provide lots of custom email settings, network ...

    关于vue地图可视化 ,完整项目,可运行

    # Orchard data platform ## Project setup ``` npm install ``` ### Compiles and hot-reloads for development ``` npm run serve ...See [Configuration Reference](https://cli.vuejs.org/config/).

    d3-tree.zip

    使用vue.js+d3技术完成生成树的实现 # d3-tree ## Project setup ``` npm install ``` ### Compiles and hot-reloads for development ...See [Configuration Reference](https://cli.vuejs.org/config/).

    基于SpringBoot+mybatis-Plus+mysql+vue3开发的医院管理系统-门诊部与住院部(源码),开箱即用

    spring *********************************************************************************************** 基于SpringBoot+mybatis-Plus+mysql+vue3开发的医院管理系统-门诊部与住院...See Configuration Reference.

    基于springboot+vue开发的聊天机器人(源码),开箱即用!

    spring **********************************...See Vite Configuration Reference. Project Setup npm install Compile and Hot-Reload for Development npm run dev Compile and Minify for Production npm run build

    Python在线考试系统前端-大学毕业设计-基于vue+源代码+文档说明

    See [Configuration Reference](https://cli.vuejs.org/config/). -------- 该资源内项目源码是个人的毕设,代码都测试ok,都是运行成功后才上传资源,答辩评审平均分达到96分,放心下载使用! &lt;项目介绍&gt; 1、该资源...

    Xilinx_Virtes-4_Evaluation Kit 资料大全

    Xilinx_Virtes-4_Evaluation Kit 资料大全 1).Xilinx Virtex-4 Evaluation Kit - BOM 120204F.pdf 2).Xilinx Virtex-4 Evaluation Kit - Configuration Reference Manual 120104.pdf 3).Xilinx Virtex-4 ...

    课程大作业基于Vue+PHP开发的简单问卷系统源码+使用说明.zip

    【优质项目推荐】 1、项目代码均经过严格本地测试,运行OK,确保功能稳定后才上传平台。... 2、项目适用于计算机相关专业(如计科、信息安全、数据科学...See [Configuration Reference](https://cli.vuejs.org/config/).

    Linux Kernel Configuration Option Reference

    ### Linux Kernel Configuration Option Reference #### 重要配置选项概述 本章节详细列举了在运行`make config`或其图形界面时可选的一些最重要的配置选项。这些配置选项主要基于内核源码中的文档,由内核开发者...

    Oracle Solaris 9 -Administrator’s Configuration File Reference S

    Oracle Solaris 9 -Administrator’s Configuration File Reference Sun TM ONE Application Server-148

    智慧健康体检平台-后台管理系统源码+项目说明.zip

    See [Vite Configuration Reference](https://vitejs.dev/config/). ## Project Setup ```sh npm install ``` ### Compile and Hot-Reload for Development ```sh npm run dev ``` ### Type-Check, Compile and...

    dubbo官方配置指南.doc

    Configuration Reference dubbo 配置可以分为多个部分,包括 ApplicationConfig、RegistryConfig、ProtocolConfig、ServiceConfig、ProviderConfig、ReferenceConfig、ConsumerConfig、MethodConfig 和 ...

    zk 6 学习资料

    2. **配置参考(ZK 6.0.1 Configuration Reference.pdf)** 配置是ZK应用的核心部分,这份文档详细介绍了ZK的各种配置选项,如ZK服务器参数、组件属性、主题定制等。通过深入理解配置,开发者能够优化应用性能,...

Global site tag (gtag.js) - Google Analytics