【struts2】一个BBS论坛初步显示struts.xml的配置
来源:互联网 发布:webp转换软件 编辑:程序博客网 时间:2024/05/01 12:41
<?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> <!-- 先加载Struts2-core-2.0.0-SNAPSHOT.jar中的struts-default.xml文件 --><!-- <include file="struts-default.xml" /> --><!-- 继承Struts-core.jar中的配置文件 --><!-- com.whqg.bbs2009. <package name="default" extends="struts-default"> 加载具体的Action类的业务方法skipPage,test.action为链接 <action name="test" class="com.test.TestAction" method="skipPage"> 由type来指定FreeMaker模板、Velocity模板、JasperReports和使用XSL转换等。 <result name="success" type="">/success.jsp</result> </action> </package> --><!-- 这里有一个热部署的方式打开 --><constant name="struts.devMode" value="true"></constant><!-- 这里定一个包,是为了检测抛出的异常 --><package name="bbs2009-default" extends="struts-default"><global-results><result name="error">/error.jsp</result></global-results><global-exception-mappings><exception-mapping result="error" exception="java.lang.Exception"></exception-mapping></global-exception-mappings></package><package name="admin" namespace="/admin" extends="bbs2009-default"><!-- 这里使用中划线是因为下划线有的时候会出bug,但是我没试过 --><action name="*-*" class="com.whqg.bbs2009.action.{1}Action" method="{2}"><result>/admin/{1}-{2}.jsp</result><result name="input">/admin/{1}-{2}.jsp</result><!--<result name="error">/error.jsp</result>--></action><!--<action name="Category" class="com.whqg.bbs2009.action.CategoryAction"><result name="add_input">/admin/Category_add_input.jsp</result><result name="update_input">/admin/Category_update_input.jsp</result></action>--></package><package name="front" namespace="/" extends="struts-default"><default-action-ref name="index" /><!-- 默认的访问的action 这个玩意似乎是没有用的,以后不要用default-action-ref了!!!!<action name="index"><result type="redirectAction">Category-list</result></action>--><action name="index" class="com.whqg.bbs2009.action.CategoryAction" method="list"><result>/index.jsp</result></action></package></struts>
0 0
- 【struts2】一个BBS论坛初步显示struts.xml的配置
- 【struts2】一个BBS论坛初步显示web.xml
- 【struts2】一个BBS论坛初步显示
- 【struts2】一个BBS论坛初步显示action
- 【struts2】一个BBS论坛初步显示model
- 【struts2】一个BBS论坛初步显示service
- 【struts2】一个BBS论坛初步显示util
- 【struts2】一个BBS论坛初步显示的Category-add.jsp
- 【struts2】一个BBS论坛初步显示sql数据库的配置,这里使用的是MySQL
- 【struts2】一个BBS论坛初步显示Category-addInput.jsp
- 【struts2】一个BBS论坛初步显示Category-delete.jsp
- 【struts2】一个BBS论坛初步显示Category-list.jsp
- 【struts2】一个BBS论坛初步显示Category-update.jsp
- 【struts2】一个BBS论坛初步显示Category-updateInput.jsp
- 【struts2】一个BBS论坛初步显示index.html
- struts2 的struts.xml配置
- struts2的struts.xml配置
- 今天遇到一个struts2配置struts.xml的问题
- 构造函数
- 《算法竞赛入门经典 第二版》 Chapter 3
- 东北农业大学第三届校赛总结
- 贝叶斯分类(涉及python3 的string的方法、文件读取操作方法、arff文件格式)
- odoo8.0(原openERP)学习笔记之一——odoo自定义模块安装
- 【struts2】一个BBS论坛初步显示struts.xml的配置
- linux之flock实现shell锁
- 【struts2】一个BBS论坛初步显示web.xml
- 【struts2】一个BBS论坛初步显示sql数据库的配置,这里使用的是MySQL
- 【struts2】一个BBS论坛初步显示action
- 【struts2】一个BBS论坛初步显示model
- 【struts2】一个BBS论坛初步显示service
- Structs2参数传递
- ngx_lua与go高并发性能对比