- 浏览: 562823 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (411)
- webservice (3)
- oracle (37)
- sqlserver (8)
- j2ee (56)
- linux (7)
- javaweb (47)
- office (1)
- struts (23)
- hibernate (11)
- spring (29)
- 网络 (2)
- tomcat (13)
- tongweb (0)
- weblogic (0)
- powerdesiginer (3)
- svn (3)
- js (20)
- ie (2)
- 编译 (3)
- css (2)
- 操作系统 (5)
- Android (41)
- jbpm4.3 (1)
- fckeditor (3)
- 操作excel (2)
- db2常用命令 (1)
- ibatis (5)
- mysql (16)
- 表达式语言 (1)
- java方式调用存储过程 (1)
- ca (1)
- linux客户端 (1)
- 电子数码 (1)
- 行业应用 (12)
- 开发工具 (4)
- 面试 (1)
- 计算机原理 (1)
- NOSQL (5)
- 虚拟机 (1)
- nginx (0)
- velocity (2)
- jndi (1)
- spring mvc (39)
- springmvc (32)
- 安全 (5)
- htmleditor (6)
- iphone4 (1)
- html (4)
- jstl (2)
- ckeditor (5)
- 连接池 (1)
- jquery (6)
- 分页 (1)
- 技术研发规则 (1)
- javamail (1)
- maven (2)
- upload (1)
- log (1)
- 测试 (10)
- spring roo (1)
- 版本控制 (2)
- find bugs (0)
- jsf (0)
- springroo (0)
- 小道理 (1)
- 小道理,技术标准 (1)
- jsf (0)
- bitbao (2)
- redmine (3)
- 团队意识 (1)
- mybatis (2)
- jquery mobile (1)
- flexpaper (0)
- json (4)
- URLRewriteFilte (1)
- html5 (1)
- 都乐保活动 (0)
- openfire (0)
- TreeMap (1)
- build (0)
- javaweb,tag (0)
- algorithm (1)
- tag (2)
- 扯淡 (0)
- mac (2)
- 叶一火(老一) (1)
- 游玩 (1)
- 编码 (1)
- 上线部署 (0)
- 研发管理 (0)
- thumbnailator (2)
- 旅游 (0)
- bingweibo (1)
- 杂谈 (4)
- ktv (1)
- weibo (1)
- 爱情 (2)
- 饮食 (1)
- MediaWiki (1)
- git (1)
- 版本库 (1)
- servlet (1)
- 感悟 (1)
- 人生 (1)
- highcharts (1)
- poi (0)
- websphere (0)
- php (1)
最新评论
-
woshixushigang:
good
org.springframework.beans.TypeMismatchException: Failed to convert property valu -
nathanleewei:
org.springframework.jdbc.core.B ...
org.springframework.beans.TypeMismatchException: Failed to convert property valu -
浪禾木:
请问是ckeditor\contents.css吗?改过以后 ...
ckeditor自动换行问题 -
simusuishi:
刚哥威武!
ckeditor取值赋值问题 -
a455642158:
收割完毕……
Android开源项目源码下载(不断更新中)
<?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>
<!--配置Struts2 应用初始化参数,可出现0次或多次-->
<init-param>
<param-name></param-name>
<param-value></param-value>
</init-param>
<!--配置Struts2的常量(如Struts2属性值),可出现0次或多次-->
<constant name="" value="" />
<!-- 利用Struts2的IoC进行Bean定义,可出现0次或多次-->
<bean type="" name="" class="" scope="" static="" optional="" />
<!-- include节点是struts2中组件化的方式可以将每个功能模块独立到一个xml配置文件中 然后用include节点引用 -->
<include file="struts-default.xml"></include>
<!--
package提供了将多个Action组织为一个模块的方式 package的名字必须是唯一的 package可以扩展
当一个package扩展自另一个package时该package会在本身配置的基础上加入扩展的package 的配置
父package必须在子package前配置 name:package名称 extends:继承的父package名称
abstract:设置package的属性为抽象的抽象的package不能定义action 值true:false
namespace:此package命名如果不设定默认为RootContext,该命名空间影响到url的地址,例如此命名
空间为/test那么访问是的地址为http://localhost:8080/struts2/test/XX.action
externalReferenceResolver:用来整合第三方类库,如Spring
-->
<package name="com.kay.struts2" extends="struts-default"
namespace="/test" abstract="" externalReferenceResolver="类库">
<!-- 定义返回结果类型-->
<result-types>
<result-type name="" class="" default="true">
<param name="参数名">参数值</param>
</result-type>
</result-types>
<interceptors>
<!--
该元素于interceptor-stack必须出现一个,也可以同时出现 name:拦截器名称 class:拦截器类路径
-->
<interceptor name="timer" class="com.kay.timer">
<param name="参数名">参数值</param>
</interceptor>
<!-- 定义拦截器栈 -->
<interceptor-stack name="mystack">
<interceptor-ref name="timer"></interceptor-ref>
</interceptor-stack>
</interceptors>
<!-- 定义默认的拦截器每个Action都会自动引用,如果Action中引用了其它的拦截器 默认的拦截器将无效 -->
<default-interceptor-ref name="mystack"></default-interceptor-ref>
<!--这个package默认使用的action-->
<default-action-ref name=""></default-action-ref>
<!-- 全局results配置 -->
<global-results>
<result name="input" type="">
<param name="参数名">参数值</param>
</result>
</global-results>
<global-exception-mappings>
<exception-mapping name="" result="" exception="">
<param name="参数名">参数值</param>
</exception-mapping>
</global-exception-mappings>
<!--
Action配置一个Action可以被多次映射(只要action配置中的name不同) name:action名称 class:
对应的类的路径 method: 调用Action中的方法名
-->
<action name="hello" class="" method="">
<param name="url">http://www.sina.com</param>
<!-- 引用拦截器
name:拦截器名称或拦截器栈名称
-->
<interceptor-ref name="timer"></interceptor-ref>
<!--
节点配置 name : result名称 和Action中返回的值相同 type : result类型
不写则选用superpackage的type struts-default.xml中的默认为dispatcher
-->
<result name="success" type="dispatcher">/talk.jsp</result>
<exception-mapping result="" exception="">
<param name=""></param>
</exception-mapping>
</action>
</package>
</struts>
发表评论
-
eclipse codestyle和formate
2011-12-26 11:20 1026北京都乐宝软件信息技术公司的代码风格 -
Common-logging 与 Log4j的结合使用
2011-12-25 15:58 1166转自:http://hi.baidu.com/suofang/ ... -
ssh整合(转)
2011-09-06 14:50 1244终于,终于将SSH整合成 ... -
struts1学习体会
2011-08-27 22:25 862ZT:http://blog.csdn.net/toyouhe ... -
struts1例子
2011-08-27 22:16 1618最近一直再做struts2的项目,一年前做的struts1林业 ... -
struts异常处理机制
2011-08-22 23:11 1068在xwork中,package的定义中增加了global-ex ... -
struts.xml及default-action-ref详解
2011-08-22 17:54 2063我想实现访问一个acion时候,如果这个action不存在, ... -
struts1防止重复提交
2011-08-21 23:39 1030防止重复提交java解决 ( ... -
struts2防止重复提交
2011-08-08 14:42 1191本人负责全国林业行政执法人员管理系统,当时遇到了新增重复提交问 ... -
struts2的sruts-default.xml解释
2011-08-08 14:20 977这个文件是struts2框架默认加载的配置文件。它定义st ... -
Unable to find 'struts.multipart.saveDir' property setting.
2011-08-08 10:23 1584以前在项目中遇到Unable to find 'struts. ... -
struts2标签中限制文本域字数
2011-05-20 16:51 1561实现textarea限制输入字 ... -
实现textarea限制输入字数
2011-05-20 15:47 1001实现textarea限制输入字 ... -
struts2接收字符日期存到数据库
2011-05-18 10:54 1347模拟51job招聘网站出现的小插曲。 1、注册时候的信 ... -
struts2 JSON插件怪异的问题
2011-03-10 14:05 940private FenleiBizIntf fenleiBiz ... -
各种错误集锦(更新中。。。)
2011-03-01 21:32 914struts2中 根据一个条件查询表时候,如果数据库中没有此数 ... -
struts2的action中默认不会初始化属性,也不会实例化属性
2011-02-19 14:27 1585编写jdbc分页时易出现的马虎。 public St ... -
The Struts dispatcher cannot be found. This is usually caused by using Struts ta
2011-02-08 21:05 1188The Struts dispatcher canno ... -
STRUTS2返回类型
2010-12-26 01:40 798STRUTS2返回类型开始使用struts2的时候,想跳转到另 ... -
STRUTS2返回类型
2010-12-26 01:40 1015STRUTS2返回类型 开始使用struts2的时候,想跳转 ...
相关推荐
struts.xml详解.docstruts.xml详解.docstruts.xml详解.doc
struts.xml详解[整理].pdf
struts.xml文件详解.docstruts.xml文件详解.docstruts.xml文件详解.docstruts.xml文件详解.doc
struts.xml文件详解示例代码,可以参照http://blog.csdn.net/jiajia333666/article/details/47979919 阅读。
struts.xml配置文件详解struts.xml配置文件详解struts.xml配置文件详解
NULL 博文链接:https://wellfrog.iteye.com/blog/612014
绝对的好东西 struts2.0中struts.xml配置文件详解
struts-config.xml 详解struts-config.xml 详解
struts2.0中struts.xml配置文件详解
struts.xml是我们在开发中利用率最高的文件,也是Struts2中最重要的配置文件。
配置 struts-config.xml 元素 属性的详解!转载来的,,看着很好!》希望对大家有用!
struts--config.xml详解
Struts-config.xml配置详解,介绍Struts-config中8个元素配置方法。
韩顺平视频配套struts-config.xml配置详解.txt
struts.configuration.xml.reload Whether to reload the XML configuration or not 是否加载xml配置(true,false) struts.continuations.package The package containing actions that use Rife continuations ...
struts1 web.xml struts1配置
truts.xml_struts.properties_详解共6页.pdf.zip
struts-config.xml配置文件详解