scwcd_notes

Page 36

TLD loading Before JSP 2.0 Before the JSP 2.0 spec, tld had to be declared in DD : <taglib> <taglib-uri>blah</taglib-uri> <taglib-location>...</taglib-location> </taglib>

Since JSP 2.0 Notinh has to be declared in DD. Container loads tld files and constructs a uri/file map. TLD files locations To be automatically loaded, tld files must be stored : In WEB-INF/ In a WEB-INF/ subdirectory In META-INF/ of a JAR file stored in WEB-INF/lib/ In a META-INF/ subdirectory of a JAR file stored in WEB-INF/lib/ taglib directive In taglib directive, no reserved prefix may be used : java javax jsp jspx sun sunw NOTE : If mutliple taglib are used, uris MUST be unique.

36


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.