Cool eye

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

          常用鏈接

          留言簿(2)

          隨筆分類

          隨筆檔案

          相冊

          收藏夾

          English

          Happy

          Java

          Resource

          Search

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

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

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


          網站導航:
           
          主站蜘蛛池模板: 资兴市| 玉溪市| 修文县| 门源| 玛纳斯县| 加查县| 溧阳市| 北安市| 双柏县| 甘南县| 安陆市| 沁水县| 天等县| 吉木乃县| 大港区| 凉城县| 平泉县| 迁安市| 同仁县| 富宁县| 邵阳市| 分宜县| 牡丹江市| 咸丰县| 东港市| 定结县| 许昌市| 敦化市| 兰州市| 诸城市| 淳化县| 洞头县| 富顺县| 任丘市| 芦溪县| 花垣县| 日喀则市| 克什克腾旗| 定结县| 乌兰县| 女性|