- 浏览: 99376 次
- 性别:
- 来自: 广州
文章分类
最新评论
-
zhouhz11862:
在jboss 7.1下会报错,找不到client这个目录
Ant 部署EJB的配置文件:build.xml配置 -
hongmeikaile:
写的很好,对我有帮助
Servlet中的重定向和请求分派
Struts2中Result结果类型:
<?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.devMode" value="true" /> <package name="resultTypes" namespace="/r" extends="struts-default"> <action name="r1"> <result type="dispatcher">/1.jsp</result> </action> <action name="r2"> <result type="redirect">/2.jsp</result> </action> <action name="r3"> <result type="chain">r1</result> </action> <action name="r4"> <result type="redirectAction">r2</result> </action> <action name="r5"> <result type="chain"> <param name="actionName">login</param> <param name="namespace">/rt</param> </result> </action> </package> <package name="rt" namespace="/rt" extends="struts-default"> <action name="login"> <result>/r5.jsp</result> </action> </package> </struts>
发表评论
-
Java类中加载Spring中的ApplicationContext.xml文件的方式
2011-12-29 14:44 12263<1>、利用ClassPathXmlApplica ... -
BeanFactory提供的方法调用
2011-10-04 23:40 991boolean contains(String):如果Bean ... -
EJB中实体Bean重载equals()和hashCode()的原因
2011-10-01 10:23 1222在对数据库操作中,通常会根据主键或唯一字段来判断得到的记录是否 ... -
Ioc 实现策略
2011-09-14 21:58 843Ioc 实现策略: 1、依赖查找:容器中的受控对象通过容器的 ... -
Spring中ClassPathXmlApplicationContext与FileSystemXmlApplicationContext
2011-09-07 21:43 1129ClassPathXmlApplicationContext与 ... -
Spring中对于Hibernate的管理
2011-08-31 22:37 874jdbc.properties文件: driverCl ... -
Spring事务的隔离级别
2011-08-21 20:58 7001. ISOLATION_DEFAULT: 这是一个 ... -
事务的传播特性
2011-08-21 20:55 7161. PROPAGATION_REQUIRED: 如 ... -
hibernate的lazy策略
2011-05-13 21:33 820hibernate的lazy策略可以使用在: <cla ... -
Hibernate 中cascade
2011-05-08 22:23 679cascade指两个对象之间的操作的联动关系,对一个对象操作时 ... -
hibernate 中对象三种状态
2011-05-08 15:28 808public class SessionTest extend ... -
hibernate get方法/load方法
2011-05-08 15:23 843get加载上来的对象为持久对象 执行get会马上发出查询语句 ... -
hibernate中list与iterate区别
2011-04-10 23:23 888list和iterate的区别? list: 默认 ... -
Struts中的LookupDispatchAction
2011-04-04 10:53 888LookupDispatchAction主要是通过请求参数来决 ... -
validate.xml
2011-04-02 21:30 866<!DOCTYPE form-validation PU ... -
ActionForm中的表单跨页
2011-04-02 18:51 930<?xml version="1.0" ... -
自定义标签
2011-04-01 16:39 866<?xml version="1.0" ... -
struts中<html:link></html:link>四种用法
2011-04-01 08:44 752<html:link page=&quo ... -
Struts1中struts-config.xml配置
2011-03-31 10:48 1193<?xml version="1.0" ... -
hibernate annotation
2011-03-30 09:49 840hibernate annotation主要是利用JPA的接口 ...
相关推荐
struts2中result类型之redirect,重定向
struts2 跳转类型 result type chain dispatcher redirect redirect action
struts2 常用Result类型(type)的用法 Invalid result location value/parameter错误的解决办法
<package name="struts2" extends="struts-default"> <result name="add_success" type="redirect">/common/pub_add_success.jsp</result> <result name="del_success" type="redirect">/common/pub_...
Struts2 result和type
<result name="upload" type="dispatcher"> /index.jsp </result> return "upload"; 开始我这里没有返回值,直接return null,以为它是ajax异步请求,不需要返回到某个页面,最后也导致页面显示:HTTP ERROR! ...
NULL 博文链接:https://xiongjiajia.iteye.com/blog/1431330
struts2的action的几种result type说明
这是一个struts2框架的处理流程的demo,里面有...struts2 result type类型的基本解释图片;相信对于初学者,通过这个demo可以基本掌握struts2的使用,注意,该demo是纯粹的struts2,没有其他框架内容,请注意甄别......
This result uses the ActionMapper provided by the ActionMapperFactory to redirect the browser to a URL that invokes the specified action and (optional) namespace.... This result type ...
struts2实现的学生信息管理系统 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" ...
org.apache.struts2.views.freemarker.FreemarkerResult 16 httpheader 16 控制特殊http行为的结果类型 16 org.apache.struts2.dispatcher.HttpHeaderResult 16 stream 16 向浏览器发送InputSream对象,通常用来处理...
下面让我们来做一个Velocity模板输出的例子,首先在classes/struts.xml中新建一个Action映射(Mapping),将其result类型设为velocity,如以下代码所示: <result type="velocity">/HelloWorld.vm</result> 例3 ...
一、 Result类型 (type) 19 二、 全局结果集(Globle Result) 20 三、 动态的结果集(dynamic result) 21 四、 带参数的结果集 21 五、 Result总结 22 六、 项目经理: 22 03 OGNL表达式语言 23 04 Struts2-Tags 28 ...
在struts2中使用result里type="stream"的结果类型时,可以实现文件的下载管理,使用时也是比较顺畅,但是当在“下载提示窗口”中点击“取消按钮”时,总是报出“java.lang.IllegalStateException”异常,异常内容...
一、 Result类型 (type) 19 二、 全局结果集(Globle Result) 20 三、 动态的结果集(dynamic result) 21 四、 带参数的结果集 21 五、 Result总结 22 六、 项目经理: 22 03 OGNL表达式语言 23 04 Struts2-Tags 28 ...
struts2自带的json转换 倒入jar文件 struts.xml中 <result type="json"/>
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <filter-name>struts2 org.apache.struts2.dispatcher.FilterDispatcher <filter-name>struts2 <url-pattern>/* 7.右击src——new——XML...
type : result类型 不写则选用superpackage的type struts-default.xml中的默认为dispatcher --> <result name="success" type="dispatcher">/talk.jsp</result> <!-- 参数设置 name:对应Action中...
Struts2 配置文件result的name属性和type属性