<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-153  評論-235  文章-19  trackbacks-0
          今天,師弟開發時有遇到一個小問題:struts表單點取消時,出現org.apache.struts.action.InvalidCancelException異常,弄了一陣子,發現用了validate="true"就會出現此異常。然后找到 freiberg 的博客。

    說到用

    <set-property property="cancellable" value="true"/>

    可以解決,馬上復制去試下,行喔,^_^。

    ---------------------------------引用--------------------------------------

    Any existing applications that use the Cancel processing will need to modify their struts-config.xml to set the cancellable property for actions which require it.

    In Struts 1.2.9 the <set-property> is used to set the cancellable property for an action....

        <action path="/fooAction"
    input="/foo.jsp"
    validate="true">
    <set-property property="cancellable" value="true"/>
    <forward name="success" path="/bar.jsp"/>
    </action>
    

    From Struts 1.3.x a new cancellable attribute can be used....

        <action path="/fooAction"
    input="/foo.jsp"
    validate="true"
    cancellable="true">
    <forward name="success" path="/bar.jsp"/>
    </action>
    

    In both Struts 1.2.9 and Struts 1.3.x an exception handler can be configured to handle the InvalidCancelException

        <action path="/fooAction"
    input="/foo.jsp"
    validate="true"
    cancellable="true">
    <forward name="success" path="/bar.jsp"/>
    <exception key="errors.cancel"
    type="org.apache.struts.action.InvalidCancelException"
    path="/foo.jsp"/>
    </action>
    

    ---------------------------------------end-----------------------------------------------------

    剛好我用的是struts是1.2.9的

    原文:http://www.tkk7.com/freiberg/archive/2007/10/20/154384.html

    posted on 2007-10-31 16:25 流浪汗 閱讀(1422) 評論(1)  編輯  收藏 所屬分類: JAVA/J2EE

    評論:
    # re: org.apache.struts.action.InvalidCancelException 錯誤問題 2007-12-07 13:56 | freiberg
    謝謝你的回復,大家共同提高,由于出差,回復的實在是晚啊,不好意思。。。  回復  更多評論
      
    主站蜘蛛池模板: 精品亚洲国产成人| 亚洲人成毛片线播放| 男性gay黄免费网站| 在线观看免费a∨网站| 亚洲成a人片7777| 18禁网站免费无遮挡无码中文| 久久精品国产亚洲AV无码麻豆 | 亚洲18在线天美| 在线视频免费观看爽爽爽| 亚洲一级毛片免费看| 无码国产精品一区二区免费式直播 | 国产高清在线免费| 免费无码午夜福利片69| 中文字幕亚洲综合久久男男| caoporn成人免费公开| 亚洲中文字幕无码不卡电影| 日本视频在线观看永久免费| 亚洲尹人香蕉网在线视颅| 日本高清在线免费| 亚洲av中文无码乱人伦在线观看| 免费在线观看亚洲| 精品国产免费人成网站| 亚洲成人动漫在线| 成人黄软件网18免费下载成人黄18免费视频 | 狠狠久久永久免费观看| 男女污污污超污视频免费在线看| 亚洲精品国产电影| 亚洲免费在线视频| 亚洲日韩精品无码专区| 亚洲国产精品一区二区九九| a毛片视频免费观看影院| 91嫩草亚洲精品| 亚洲精品无码久久久| 最近免费中文字幕高清大全| 亚洲精品无码一区二区| 国产亚洲精品成人AA片新蒲金| 在线观看免费中文视频| 国产精品亚洲综合天堂夜夜| 亚洲国产美国国产综合一区二区| 拍拍拍又黄又爽无挡视频免费| 免费无遮挡无遮羞在线看|