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

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

主站蜘蛛池模板: 男男肉肉互插腐文 | 蜜桃人妻无码AV天堂三区 | 在线播放免费人成视频 | 老师那里好大又粗h男男 | 狼与美女谐音歌词 | chinesevideoshd性舞 | 国产伊人久久 | 亚洲高清国产拍精品影院 | 吸奶舔下面 | 香蕉AV福利精品导航 | 国产精品国产三级国AV在线观看 | 国产跪地吃黄金喝圣水合集 | 寻找最美乡村教师颁奖晚会 | 国产福利秒拍weipai.ee | 久草在线新是免费视频 | 亚洲伊人精品 | 999久久免费高清热精品 | 97超视频在线观看 | 日韩亚洲欧美中文在线 | 国产露脸无码A区久久蘑菇 国产露脸无码A区久久 | 永久免费的无码中文字幕 | 久久综合电影 | 乱码午夜-极品国产内射 | 精品亚洲视频在线观看 | 精品无码久久久久久久久 | 国产高清视频在线观看不卡v | 伊人久久青草 | 伊人国产在线播放 | 亚洲视频不卡 | 免费观看男生桶美女私人部位 | 国产人妻777人伦精品HD | AV天堂AV亚洲啪啪久久无码 | 亚洲一区日韩一区欧美一区a | 青青草原社区 | 天上人间影院久久国产 | 777琪琪午夜理论电影网 | 国产成人精品自拍 | 伊人久久五月丁婷婷 | 色多多涩涩屋下载软件 | 快播av种子大全 | 乱码国产丰满人妻WWW |