struts2的配置
2014-04-16 20:46
369 查看
struts2需要的开发包
web.xml文件的配置
struts.xml的配置
<span style="font-size:24px;color:#ffffff;"><</span><span style="font-size:24px;">?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"><struts> <!-- 请求参数的编码方式 --> <constant name="struts.i18n.encoding" value="UTF-8"/> <!-- 指定被struts2处理的请求后缀类型。多个用逗号隔开 --> <constant name="struts.action.extension" value="action,do,htm"/> <!-- 当struts.xml改动后,是否重新加载。默认值为false(生产环境下使用),开发阶段最好打开 --> <constant name="struts.configuration.xml.reload" value="true"/> <!-- 是否使用struts的开发模式。开发模式会有更多的调试信息。默认值为false(生产环境下使用),开发阶段最好打开 --> <constant name="struts.devMode" value="false"/> <!-- 设置浏览器是否缓存静态内容。默认值为true(生产环境下使用),开发阶段最好关闭 --> <constant name="struts.serve.static.browserCache" value="false" /> <!-- 指定由spring负责action对象的创建 <constant name="struts.objectFactory" value="spring" /> --> <!-- 是否开启动态方法调用 --> <constant name="struts.enable.DynamicMethodInvocation" value="false"/> </struts</span>
相关文章推荐
- struts2的struts.properties配置文件详解
- Struts2 struts.xml相关配置
- struts2配置问题
- struts2学习:配置篇之通配符映射
- Struts2的标签及其自定义token拦截器的定义及配置
- struts2 的基本常用配置详解
- Struts2配置文件详解——result type
- 关于struts2在struts.xml配置文件遇到的问题
- Struts2 拦截器处理同步(普通Http)请求和异步(post,ajax)请求时拦截配置
- struts2-配置文件中通配符的使用
- 【笔记】struts2学习笔记(二)--常见问题/一些配置/Myeclipse使用
- Struts2 的各种xml 和struts 配置信息 都是一样的
- Struts2与Freemarker的配置方法
- struts2配置记录--悲惨的回忆
- Struts2配置文件详解
- Struts2配置dtd约束
- Struts2的properties配置文件详解
- 配置Struts2 xml Referenced file contains errors (http://struts.apache.org/dtds/struts-2.0.dtd). For m
- struts2的简单流程与xml配置
- struts2核心配置文件名称及加载