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

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

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

    明天的明天的明天

    用鍵盤改變生活

      BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
      17 Posts :: 0 Stories :: 19 Comments :: 0 Trackbacks
    這個問題,本來已經(jīng)搞好了,但是忘了重新編譯,郁悶了半天。。
    下面看看解決方案吧:

    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>
    
    posted on 2007-10-20 01:20 Endless 閱讀(1710) 評論(5)  編輯  收藏

    Feedback

    # re: 標簽報org.apache.struts.action.InvalidCancelException錯誤問題 2007-10-31 16:11 流浪汗
    多謝,我也遇到此問題.  回復  更多評論
      

    # re: 標簽報org.apache.struts.action.InvalidCancelException錯誤問題 2008-07-23 10:04 lui
    我也遇到了這個問題,用博主的方法試了一下,果然,點擊cancel以后不會包異常了,但是, 這時候點擊submit和cancel的結果是一樣的,這并不是我們想要的結果. 后來干脆 我直接把<html:cancel/>改成了<html:reset/>,結果一切OK了  回復  更多評論
      

    # re: 標簽報org.apache.struts.action.InvalidCancelException錯誤問題 2008-08-21 19:01 admin
    錯誤解決了啊 謝謝你啊 啊   回復  更多評論
      

    # re: 標簽報org.apache.struts.action.InvalidCancelException錯誤問題 2009-02-23 09:19 GGYY
    先謝謝樓主了,三樓的問題我還沒有調試,先試一下再說吧,呵呵  回復  更多評論
      

    # re: 標簽報org.apache.struts.action.InvalidCancelException錯誤問題[未登錄] 2010-07-23 16:04 123
    @lui
    你沒有弄清楚reset和cancel的區(qū)別  回復  更多評論
      


    只有注冊用戶登錄后才能發(fā)表評論。


    網(wǎng)站導航:
     
    主站蜘蛛池模板: 国产亚洲综合视频| 亚洲欧洲日产国码在线观看| 午夜亚洲国产理论片二级港台二级| 精品无码免费专区毛片| 亚洲A∨无码无在线观看| 国产亚洲免费的视频看| 在线a亚洲v天堂网2019无码| 成人精品视频99在线观看免费| 亚洲欧洲中文日韩av乱码| 亚洲国产a级视频| 一个人看的免费观看日本视频www 一个人看的免费视频www在线高清动漫 | 亚洲精品天天影视综合网| 爱丫爱丫影院在线观看免费| 亚洲va中文字幕无码久久| 免费国产成人午夜在线观看| 亚洲电影中文字幕| 免费观看黄色的网站| 亚洲日本久久久午夜精品| 成人午夜大片免费7777| 在线观看国产一区亚洲bd| 亚洲成AV人网址| 国产自国产自愉自愉免费24区| 亚洲国产精品久久久久久| 精品国产污污免费网站aⅴ| 亚洲一区二区三区免费在线观看| 最近最好的中文字幕2019免费 | 久久精品国产精品亚洲蜜月| 在线免费观看国产| 亚洲欧美成人av在线观看 | 亚洲深深色噜噜狠狠爱网站| 四虎成人精品永久免费AV| 亚洲最大无码中文字幕| 亚洲成AV人在线观看网址| 无码囯产精品一区二区免费| 亚洲美国产亚洲AV| 亚洲色自偷自拍另类小说| AV免费网址在线观看| aa午夜免费剧场| 91在线亚洲综合在线| 国产亚洲综合网曝门系列| 成年人免费视频观看|