天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

struts2 action跳轉調用另一個程序

目的:主要為了在一個Action成功后跳轉調用另一個程序。
Struts2.xml
[html]
復制代碼 代碼如下:
<?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> <!-- 指定為開發模式(默認值為false) -->
<constant name="struts.devMode" value="false" />
<constant name="struts.i18n.encoding" value="UTF-8"/>
<constant name="struts.custom.i18n.resources" value="message"></constant>
<!-- 上傳文件臨時文件位置 -->
<constant name="struts.multipart.saveDir" value="c:/"></constant>
<!--
<include file="com/lanstar/config/struts/struts_user.xml"/>
--> www.jb51.NET
<package name="resume" namespace="/" extends="struts-default">
<action name="analysisAction" class="analysisAction">
<result name = "success">/jsp/uploadresult.jsp</result>
</action>
<action name="upload" class = "uploadAction">
<result name="success" type= "chain">
<param name="actionName">analysisAction</param>
</result>
<!--<result name = "success">/jsp/uploadresult.jsp</result>
--><result name = "input">/jsp/Upload.jsp</result>
<result name="error">/jsp/error/error.jsp</result>
<interceptor-ref name="fileUpload">
<!-- 單個上傳文件的最大值-->
<param name="maximumSize">409600</param>
<!-- 只能上傳的文件的類型,可到tomcat的web-xml中查看各種文件類型-->
<param name="allowedTypes">text/html,application/msword</param>
</interceptor-ref>
<interceptor-ref name="defaultStack"></interceptor-ref>
</action>
</package>
</struts>

Spring.xml
[html]
復制代碼 代碼如下:
<!--
- Application context definition for JPetStore's business layer.
- Contains bean references to the transaction manager and to the DAOs in
- dataAccessContext-local/jta.xml (see web.xml's "contextConfigLocation").
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<!-- service start -->
<bean id="uploadAction" class="com.lanstar.resume.action.UploadAction" scope="prototype">
</bean>
<bean id="analysisAction" class="com.lanstar.resume.action.AnalysisAction" scope="prototype">
</bean>
</beans>

兩種方式:
需要保存前一個action的屬性信息時使用:
[Java]
復制代碼 代碼如下:
<result name="success" type= "chain"><param name="actionName">analysisAction</param></result>

不保存前一個action的參數可以用這種方法:
[Java]
復制代碼 代碼如下:
<result name="success" type= "redirect-action"><param name="actionName">analysisAction</param></result>

jsp技術struts2 action跳轉調用另一個程序,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 九九影院午夜理论片无码 | 天天色天天综合网 | 男女又黄又刺激B片免费网站 | 熟妇的味道HD中文字幕 | YELLOW视频直播在线观看高清 | 久久精品熟一区二区三区 | 日韩精品欧美在线视频在线 | 久久热r在线视频精品 | 美女视频秀色福利视频 | 打开双腿狠狠蹂躏蜜桃臀 | adc影院欢迎您大驾光临入口 | 深爱激情站 | yellow免费观看完整版直播 | 99热在线观看 | 福利一区福利二区 | 亚洲综合色婷婷在线影院 | 色cccwww | 双腿被绑成M型调教PLAY照片 | 中文字幕亚洲视频 | 无遮挡午夜男女XX00动态 | 欧美成人无码A区在线观看免费 | 亚洲AV午夜精品麻豆AV | 一本大道熟女人妻中文字幕在线 | 文中字幕一区二区三区视频播放 | 被男按摩师添的好爽在线直播 | 日本一卡2卡3卡四卡精品网站 | 小雪奶水涨翁工帮吸的推荐语录 | 久久精品亚洲热综合一本奇米 | 国产免费福利在线视频 | 污污又黄又爽免费的网站 | 成人1000部免费观看视频 | 丰满女朋友在线观看中文 | 色偷偷在线视频 | 久久国产高清字幕中文 | 日本无码人妻丰满熟妇5G影院 | 91精品专区 | a毛片基地免费全部视频 | 黄色片网站下载 | 一品道门在线观看免费视频 | www.国产精品视频 | 熟女久久久久久久久久久 |