`

Struts 2.x 之 @Result

阅读更多
@Result(name="success",type="redirectAction",params={"actionName","orders"})
  • name - Result name; default Action.SUCCESS
  • value - Value of result (result destination)
  • type - Type of result; default NullResult. For example:
    • ServletRedirectResult
    • ServletActionRedirectResult - Equivalent to redirect-action type in XML config.
    • TilesResult
  • params - An Array of the parameters in the form {key1, value1, key2, value2}
分享到:
评论

相关推荐

    Struts2入门教程(全新完整版)

    10.为什么要使用struts2代替struts1.x 7 二、struts.xml配置及例程 7 1.配置文件的优先级 7 2.配置形式 8 3.package配置相关 8 4.分工合作include:指定多个配置文件 10 5.tomcat认证访问 10 6.初识拦截器 11 7....

    牛牧struts2.x授课源码(全)

    自己边看视频边做的~ Structs2_AccessWebElements Structs2_ActionAdvance Structs2_ActionIntroduce Structs2_Annotation ...Structs2_ResultTypes Structs2_TypeConvert Structs2_UITag Structs2_Validation

    用Struts2新建一个应用的方法步骤

    <result name="success">/result.jsp</result> </struts> 8. 右击src——new——Package,Name为com.test.action,单击Finish。右击com.test.action——Class,Name为LoginAction, 单击Finish。 9.在...

    struts2.0扫盲文档

    struts2.0扫盲文档2加入struts.xml配置文件(自己建) <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> ...

    整合struts2和spring源代码(可以直接在tomcat中运行)

    Struts2与Spring的集成要用到Spring插件包struts2-spring-plugin-x-x-x.jar,这个包是同Struts2一起发布的。Spring插件是通过覆盖(override)Struts2的ObjectFactory来增强核心框架对象的创建。当创建一个对象的...

    Struts2+Spring+hibernate中对action的单元测试环境搭建[总结].pdf

    struts2-junit-plugin-2.1.8.jar 是 Struts2 提供的测试插件,可以用来测试 Struts2.x 中的 Action。 下面是一个基本的测试代码: ```java public class MessageActionTest extends StrutsSpringTestCase { @...

    J2EE学习笔记(J2ee初学者必备手册)

    第三章 Action,Result & Struts2 Tag Library......................267 第四章 Data Transfer & Type Converter..273 第五章 Validation(数据格式验证)..276 第六章 Internationalization(I18N:国际化).............

    如何解决Mybatis--java.lang.IllegalArgumentException: Result Maps collection already contains value for X

    两天因为项目需要整合spring、struts2、mybatis三大框架,但启动的时候总出现这个错误,困扰我好久,折腾了好久终于找到问题根源,下面小编给大家分享下问题所在及解决办法,一起看看吧

    Java/JavaEE 学习笔记

    第三章 Action,Result & Struts2 Tag Library......................267 第四章 Data Transfer & Type Converter..273 第五章 Validation(数据格式验证)..276 第六章 Internationalization(I18N:国际化).............

    javaee三大框架整合宅急送项目lib包

    left: <s:property value="#activityCoordinate.x"/>px; top: <s:property value="#activityCoordinate.y"/>px; position: absolute; border-color: red; border-style: solid; border-width: 1px;"> ...

    struts_2.3.12GA_API文档(chm版本)

    Stops the action invocation immediately (by throwing a PauseException) and causes the action invocation to return the specified result, such as Action.SUCCESS, Action.INPUT, etc. void ...

Global site tag (gtag.js) - Google Analytics