Cool eye

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            63 Posts :: 4 Stories :: 3 Comments :: 0 Trackbacks

          In struts, there is only one tag instance with one tag, so if there is one state field in tag class, please don't forget to revert the value of the state field before returning .
          For example:
          public class UserDefinedTableTag   extends TagSupport
          {
             private boolean isAddRichScript = false;
             public int doEndTag() throws JspException {

             
              isAddRichScript = false;
                  return EVAL_PAGE;

              }
          private void addNote(UserDefinedTableColumnConfig userDefinedTableColumnConfig, StringBuffer outStr) {
                          if("T".equals(userDefinedTableColumnConfig.getRichHtml()))
                  {
                      if(!isAddRichScript)
                      {
                          isAddRichScript = true;
                          outStr.append(richScript);
                      }
                      outStr.append(richHtml);
                  }
                      }
          }

          posted on 2006-01-12 16:56 joeyeezhang 閱讀(244) 評論(0)  編輯  收藏 所屬分類: Struts

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


          網站導航:
           
          主站蜘蛛池模板: 巫溪县| 汽车| 淳化县| 准格尔旗| 贵溪市| 庆城县| 汉川市| 河西区| 达拉特旗| 竹溪县| 屏山县| 昂仁县| 嘉义县| 襄汾县| 伊吾县| 庄浪县| 屏山县| 新密市| 邳州市| 慈溪市| 武鸣县| 会同县| 福鼎市| 龙游县| 蒲城县| 临澧县| 客服| 新安县| 镇安县| 洪泽县| 儋州市| 天祝| 绥滨县| 靖西县| 朝阳市| 丰顺县| 旺苍县| 巴南区| 陆良县| 拉孜县| 永靖县|