牛仔褲的夏天

          JAVA是藍色的- online

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            30 隨筆 :: 5 文章 :: 15 評論 :: 0 Trackbacks
          Action中的代碼:
          ActionMessages actionMessages=new ActionMessages();
          actionMessages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("......"));
          saveMessages(request, actionMessages);
          ?
          對應的jsp中:
          <html:messages id="message" message="true">
          ????? <bean:write name="message"/>
          </html:messages>
          • name : 指定ActionMessages存放在request或者session內的屬性key.
          • message: 指定消息的來源, 如果為true, 對應于key=Globals.MESSAGE_KEY的ActionMessages對象, 此時name屬性無效;如果為false, 則根據name屬性檢索ActionMessages對象, 如果沒有設置name, 默認為Globals.ERROR_KEY. message屬性的默認值為false.
          posted on 2006-03-27 10:02 luckyrobbie 閱讀(2144) 評論(4)  編輯  收藏 所屬分類: Struts & Hibernate

          評論

          # re: struts中<html:messages>標簽的使用 2007-08-15 16:42 nn
          hdfd  回復  更多評論
            

          # re: struts中<html:messages>標簽的使用[未登錄] 2009-03-10 11:56 kkk
          kkk  回復  更多評論
            

          # re: struts中<html:messages>標簽的使用 2010-12-18 16:24 還在睡覺的幽靈
          寫的很好就是沒用啊 我弄了好久它怎么都不出來..  回復  更多評論
            

          # re: struts中<html:messages>標簽的使用 2010-12-18 21:09 luckyrobbie
          4年前寫的了,早忘記了  回復  更多評論
            

          主站蜘蛛池模板: 郁南县| 东丰县| 大洼县| 浠水县| 家居| 萨嘎县| 乾安县| 饶河县| 衡东县| 内江市| 白朗县| 临西县| 土默特左旗| 汤原县| 乳山市| 那坡县| 江门市| 邵东县| 黑河市| 门源| 华阴市| 开平市| 林甸县| 安顺市| 福鼎市| 云林县| 忻城县| 赤城县| 沂水县| 东兰县| 石景山区| 祁东县| 屯门区| 鄂尔多斯市| 永川市| 东兰县| 玉林市| 尼勒克县| 岳西县| 泰州市| 建平县|