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 閱讀(246) 評論(0)  編輯  收藏 所屬分類: Struts

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


          網站導航:
           
          主站蜘蛛池模板: 广安市| 日土县| 个旧市| 石家庄市| 普兰店市| 常山县| 德惠市| 黄石市| 乌恰县| 遵义市| 搜索| 新昌县| 灵山县| 金塔县| 阿克陶县| 陵川县| 根河市| 金平| 横山县| 道孚县| 应城市| 观塘区| 夏河县| 临夏市| 谷城县| 乌拉特后旗| 北京市| 永州市| 二连浩特市| 洪泽县| 曲沃县| 黑水县| 集贤县| 麟游县| 正镶白旗| 民勤县| 东丰县| 金川县| 江津市| 阳城县| 宁武县|