struts2.0.14 web.xml,struts.xml配置
web.xml
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
- <display-name>Struts Blank</display-name>
- <filter>
- <filter-name>struts2</filter-name>
- <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>struts2</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <welcome-file-list>
- <welcome-file>index.html</welcome-file>
- </welcome-file-list>
- </web-app>
struts.xml
- <?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.enable.DynamicMethodInvocation" value="false" />
- <constant name="struts.devMode" value="false" />
- <include file="example.xml"/>
- <!-- Add packages here -->
- </struts>
example.xml
- <?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>
- <package name="example" namespace="/example" extends="struts-default">
- <action name="HelloWorld" class="example.HelloWorld">
- <result>/example/HelloWorld.jsp</result>
- </action>
- <action name="Login_*" method="{1}" class="example.Login">
- <result name="input">/example/Login.jsp</result>
- <result type="redirect-action">Menu</result>
- </action>
- <action name="*" class="example.ExampleSupport">
- <result>/example/{1}.jsp</result>
- </action>
- <!-- Add actions here -->
- </package>
- </struts>
转载于:https://blog.51cto.com/const/600416
struts2.0.14 web.xml,struts.xml配置相关推荐
- struts2.0.14 包命名空间
转载于:https://blog.51cto.com/const/602830
- struts2配置详解(struts.xml配置详解)
本文转自:http://www.cnblogs.com/fmricky/archive/2010/05/20/1740479.html struts.xml是我们在开发中利用率最高的文件,也是Stru ...
- struts2随笔(一)Action、struts.xml、Interceptor细节
Struts2由Struts1和webWork两个经典MVC框架发展起来.与传统的Struts1相比,Struts2允许使用不同的Java对象作为Action.支持更多的视图技术,基于AOP思想的拦截 ...
- struts2——struts.xml配置文件详解
文章目录 介绍 一.struts.xml 文件结构 二.常量配置 三.包配置 四.包含配置 介绍 struts.xml 是 Struts2 框架的核心配置文件,该文件主要用于配置 Action 和请求 ...
- struts2 的struts.properties配置详解
Struts 2框架有两个核心配置文件,其中struts.xml文件主要负责管理应用中的Action映射,以及该Action包含的Result定义等.除此之外,Struts 2框架还包含 st ...
- Struts 2配置详解
学习内容 Struts 2配置文件 Action的配置 Result的配置 属性驱动与模型驱动 能力目标 熟练进行Struts 2配置 熟练使用属性驱动和模型驱动 本章简介 上一章我们初步学习了Str ...
- Struts2学习笔记(一)--入门常见配置
Struts2框架的学习路线 l 第一天:Struts2的概述.Struts2的入门.Struts2常见的配置.Struts2的Action的编写 l 第二天:Struts2的数据的封装.结果页面配 ...
- struts.properties配置详解
Struts 2框架有两个核心配置文件,其中struts.xml文件主要负责管理应用中的Action映射,以及该Action包含的Result定义等.除此之外,Struts 2框架还包含struts. ...
- Struts2.0第三章(文件上传、ajax开发、json、Fastjson、Jackson、注解开发)
Struts2.0文件上传: 浏览器端注意事项: 1.表单提交方式method = post: 2.表单中必须有一个<input type="file" name = &qu ...
最新文章
- python3教程廖雪峰云-python3基础教程廖雪峰云(如何规划研究生三年最后成为谷歌软件工程师)...
- 【翻译】在ruby中实现attributes的lazily initialization(惰性初始化)
- 【python】yaml文件操作
- WebAPI——浏览器跨域解决方案
- 移动端动画使用transform提升性能
- 红黑所-1996-2011年中国黑客大事记
- Ubuntu系统清理瘦身
- MDM数据分析设计方案
- ufs2.1 android bench,一加UFS 3.0手机极限测试 对比UFS2.1测评
- Flash Magic使用
- WKWebView OC与JS交互
- mpa和pis_有关压力单位pis
- java 亚马逊 mws_使用Amazon Deep Java库进行Java中的机器学习
- 微信视频号标题怎么写吸引眼球
- vr性能测试软件,VR性能测试
- 你上面写的代码用什么编程软件?
- WebAPP添加到iOS的桌面
- 一个手机游戏服务器的架构
- kernal tch 下载 天正_kernal tch 下载 天正_tch kernal.arx
- 上海发挥龙头带动作用 推进长三角一体化发展示范区建设