天天躁日日躁狠狠躁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跳轉調用另一個程序,轉載需保留來源!

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

主站蜘蛛池模板: 日本最新在线不卡免费视频 | 51国产偷自视频在线视频播放 | 天天躁日日躁狠狠躁中文字幕老牛 | 国产精品午夜小视频观看 | 亚洲日韩国产精品乱-久 | 啊…嗯啊好深男男小黄文 | 一本久道久久综合狠狠躁AV | 国精产品一区一区三区有限在线 | 4480YY无码午夜私人影院 | 高清撒尿hdtube撒尿 | 青娱乐极品视觉盛宴av | 色综合久久88色综合天天提莫 | 亚洲中文 字幕 国产 综合 | 久久内在线视频精品mp4 | 精品无码人妻一区二区免费AV | 秋霞午夜理论理论福利无码 | 亚洲精品无码午夜福利在线观看 | 国产精品免费一区二区三区视频 | 在线播放一区二区精品产 | 亚洲精品在看在线观看 | 姐姐不~不可以动漫在线观看 | 男女午夜性爽快免费视频不卡 | 欧美黑人经典片免费观看 | 亚洲人成在线播放网站岛国 | 曰本女人牲交视频免费 | 亚洲中文久久精品AV无码 | 69亞洲亂人倫AV精品發布 | 色欲狠狠躁天天躁无码中文字幕 | 日韩高清一区二区三区不卡 | 亚洲中文字幕欧美自拍一区 | 吉吉av电影| 免费精品美女久久久久久久久久 | 精品久久久麻豆国产精品 | 亚洲AV日韩AV欧美在线观看网 | yellow高清免费观看日本 | 久久综合一个色综合网 | 性色无码AV久久蜜臀 | 一级性生活毛片 | 娇喘高潮教室h | 中文字幕亚洲无线码高清不卡 | 国产精品99久久久精品无码 |