<html>

來源:互聯網
上載者:User

標籤:web.xml   jmeter   addclass   .post   copyright   直播   link   ann   height   

<package name="helloworld" extends="struts-default" namespace="/">

<action name="hellowrold" class="action.HelloWorld1Action" >

<result name="toSecond" type="chain">
<param name="actionName">secondAction</param>
<param name="namespace">/</param>

</result>

兩個加陰影的地方都必須存在的,否則就報錯

閱讀全文 著作權聲明:本文為博主原創文章,未經博主同意不得轉載。 舉報
  • 標籤:
  • 本文已收錄於下面專欄:
0條評論
相關文章推薦
struts2.xml中使用chain和redirectAction這兩個注意事項 當在struts.xml中使用chain和redirectAction這兩個類型結果的時候,會報檢查錯誤!

Multiple annotations found at this line:?...

  • xyh820
  • 2012-02-25 14:26
  • 3643
有關struts.xml中用到chain和redirectAction編譯報錯Undefined actionnamespace parameter 看了別人的資料總結 namespace="/">secondAction/兩個加陰影的地方都必須存在的,否則就報錯
  • tarataotao
  • 2013-07-02 16:08
  • 635
struts2 中chain、redirect、redirectaction的差別 redirect:action處理完後重新導向到一個視圖資源(如:jsp頁面),請求參數所有丟失。action處理結果也所有丟失。 2 redirect-action:action處理完後重新導向到一個action,請求參數所有丟失,action處理結果也所有丟失。

3 chain:action處理完後轉寄到一個action。請求參數所有丟失,action處理結果不會丟失。

  • k_lb
  • 2012-03-31 14:58
  • 289
IT忍者神龜之web.xml 中的listener、 filter、servlet 載入順序及其具體解釋 web.xml 中的listener、 filter、servlet 載入順序及其具體解釋一、概述1、啟動一個WEB項目的時候,WEB容器會去讀取它的設定檔web.xml,讀取和兩個結點...
  • vipyhd
  • 2014-07-31 23:00
  • 210
struts.xml 使用 type="redirect" 和type="redirectaction" 傳遞參數 在我模仿寫一個OA許可權管理系統時。運行完一個action 後跳轉到還有一個action中,並須要將原action的userId 屬性傳遞到目的action中。

&lt;result name="addOrUpdateUserRole" type="redirect"&gt;userAction!findUserRolesByUserId.action?userId=${userId}&lt;/result&gt;成功。而使用 &lt;result name="add

  • yangshen998
  • 2010-12-15 11:06
  • 361
IT忍者神龜之Comparing Struts 1 and 2 Comparing Struts 1 and 2?Edit Page????Browse Space????Add Page????Add News...
  • vipyhd
  • 2014-09-14 17:21
  • 693
VIPYHD +關注
原創
591
粉絲
26
喜歡
0
  • IT忍者神龜之資料庫設計規範
  • IT忍者神龜之JMeter-使用Badboy錄製Web測試指令碼
  • IT忍者神龜之Hadoop第一天東哥
  • Internet 即時通訊系統的設計與實現
很多其它文章 線上課程

utm_source=blog7" target="_blank">【直播】機器學習&資料採礦7周實訓--韋瑋

【套餐】系統整合專案管理project師順利通關--徐朋
  • 檔案夾
  • 喜歡 取消愛好
  • 收藏
  • 分享 微博 QQ
收藏助手 不良資訊舉報

<html>

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.