JSP runtime engine使用tld的步驟

          1 The JSP runtime reads a taglib directive at
          the top of the JSP, indicating that this page
          uses tags and where to find the TLD file for
          the tag library or libraries it uses.
          2 The JSP runtime next locates the TLD and
          reads all the information about the library
          from it.
          3 The TLD’s information is placed in instances of the helper classes.
          4 The runtime returns to reading the JSP. When it encounters a tag, it needs
          to validate its usage, meaning: (1) checking if it is indeed a tag defined in
          the TLD and (2) whether or not it is used properly (i.e., the tag has valid
          attributes and proper body type). The TLD also informs it of the tag handler
          class that implements this tag, in order for it to use that class in the
          servlet being produced.
          5 To validate the tag against the TLD, the runtime can make calls to the inmemory
          helper objects, instead of referring to the TLD.


          TLD的信息加載在TagLibraryInfo,TagInfo,TagAttributeInfo之中

          posted on 2007-09-25 09:27 劉錚 閱讀(357) 評論(0)  編輯  收藏 所屬分類: Tag develope

          <2025年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          導(dǎo)航

          統(tǒng)計(jì)

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評論

          主站蜘蛛池模板: 临潭县| 红原县| 湄潭县| 巴林右旗| 饶阳县| 蕲春县| 阿合奇县| 穆棱市| 贵溪市| 普陀区| 公安县| 湖口县| 丹东市| 石景山区| 乌审旗| 克拉玛依市| 灵璧县| 松江区| 巴里| 关岭| 仁化县| 广丰县| 葵青区| 天长市| 遵义市| 湘乡市| 青河县| 江西省| 类乌齐县| 永吉县| 东兰县| 隆林| 宣武区| 廊坊市| 砀山县| 霍林郭勒市| 青岛市| 济宁市| 兰西县| 达尔| 嘉黎县|