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 劉錚 閱讀(361) 評論(0)  編輯  收藏 所屬分類: Tag develope

          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導(dǎo)航

          統(tǒng)計

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評論

          主站蜘蛛池模板: 林州市| 会宁县| 巴东县| 东方市| 石门县| 蓝田县| 北京市| 霍林郭勒市| 义乌市| 马公市| 澎湖县| 乐安县| 安远县| 公主岭市| 邓州市| 商城县| 福建省| 即墨市| 建平县| 东港市| 康乐县| 息烽县| 丽水市| 新平| 鹤山市| 武清区| 深圳市| 游戏| 柳江县| 门源| 河源市| 黄大仙区| 舒城县| 文化| 阿巴嘎旗| 仙游县| 丰城市| 灌云县| 太和县| 闽清县| 临安市|