<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd"> <struts>
<!-- 编写常量, 大概的意思就是覆盖其他的配置 -->
<constant name="struts.action.extension" value="do,,"></constant> <package name="default" namespace="/" extends="struts-default"> <!-- 只要编写了一个action类,就需要在这里配置 --> <!-- 下面的意思是: hello:请求地址,就是jsp跳转页面写的:hello.action
class:访问hello跳转执行的类,类的名称和请求跳转的页面没必要一定相同。
method:属性的方法去执行 如果没有设置的method的话,那么就执行名字是execute的方法,这个是默认值。
然后的话,class也是有默认值的,不过一般都不用
-->
<action name="hello" class="com.itheima.action.HelloAction" method="sayHello">
<!-- 配置跳转的页面
执行方法return的是什么字符串,这个name属性就写什么字符串,
-->
<result name="ok" type="">/demo1/suc.jsp</result>
</action>
</package>
<!-- 引入其他的配置文件,但是用到的概率不到,了解一下就ok -->
<include file="com/iteima/user/struts_user.xml"></include>
</struts>

最新文章

  1. [LeetCode] Insert Interval 插入区间
  2. iOS sqlite数据库图像化查看
  3. php读取html文件(或php文件)的方法
  4. keycode按键对照表
  5. python 行转列
  6. Kryo 为什么比 Hessian 快
  7. HDU-4628 Pieces 搜索 | DP
  8. C#开发-ftp操作方法整理
  9. 【html】【9】div布局[div层叠]
  10. c语言学习之基础知识点介绍(六):if和switch结构
  11. DB2JAVIT:RC=9505解决方案
  12. uva 105 - The Skyline Problem
  13. js戳和php戳时间换算
  14. Linux系统把/home重新挂载到其他硬盘或分区
  15. python中不能写n++
  16. I/O输入流基础之FileInputStream
  17. vue-awesome-swiper组件不能自动播放和导航器小圆点不显示问题
  18. React中父子组件间的通信问题
  19. C++ Primer Plus学习:第三章
  20. VC知识库

热门文章

  1. Cisco安全防护读书笔记之一Cisco系统设备协议漏洞
  2. GetListToJson
  3. 洛谷 P1194 买礼物
  4. [Javascirpt AST] Babel Plugin -- create new CallExpression
  5. 存储过程和SQL语句比较
  6. IOS系统不兼容position: fixed;属性的解决方案
  7. BingMap频繁Add Pushpin和Delete Pushpin会导致内存泄露
  8. hadoop组件及其作用
  9. 单位转换 inch mm mil
  10. Web自动化测试 Selenium+Eclipse+Junit+TestNG+Python