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

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

主站蜘蛛池模板: 亚洲国产在线午夜视频无 | 三级黄色在线免费观看 | 亚洲永久精品ww47app | 97国产精品视频在线观看 | 好男人WWW免费高清视频在线 | 凌馨baby | 久久中文电影 | 99久久免费看国产精品 | 又亲又揉摸下面视频免费看 | 777久久人妻少妇嫩草AV蜜桃 | 国产精品99久久久久久宅男AV | 久久99AV无色码人妻蜜 | 久久久久久91香蕉国产 | 大胸美女被吊起来解开胸罩 | 伊人久久99热这里只有精品 | 亚洲男人片片在线观看 | 麻豆精品2021最新 | 高清无码中文字幕影片 | 性色无码AV久久蜜臀 | 欧美午夜理伦三级在线观看 | 亚洲性夜色噜噜噜网站2258KK | 亚洲国语在线视频手机在线 | 久久不射网| 日本女人水多 | 丝瓜影院观看免费高清国际观察 | 国产精华av午夜在线观看 | 久9青青cao精品视频在线 | 黑人巨摘花破女处 | 亚洲色t图| 成年人视频在线观看免费 | 在线观看中文字幕码2021不用下载 | 国产人在线成免费视频 | 小寡妇水真多好紧 | 琪琪电影午夜理论片77网 | 纯肉巨黄H爆粗口男男分卷阅读 | 免费观看成人www精品视频在线 | 国产在线一区二区三区四区 | 国产成人精品综合在线观看 | 啦啦啦WWW在线观看免费高清版 | 国产电影三级午夜a影院 | 99国产在线精品视频 |