Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.servlet.jsp.tagext TagLibraryInfo class

 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I read the javax.servlet.jsp.tagext API.I understood the when taglib directive is encountered in a custom tag.it tries to parse the TLD mentioned in the URL and makes a TagLibraryInfo object.Where exactly is this created?Does the container manages creation and deletion during run time?How will it recognises the TagLibraryInfo objects of different tlds?If it is container managed,why is it exposed to the users?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Classes of this type are created and managed by the container during the translation time of a JSP page that references TLDs via the taglib directive. It is not available at JSP run time.

The instance of this class is available during translation time to classes that are serving as "extra info" classes of custom actions just in case the information therein might be useful.
[ January 12, 2006: Message edited by: Bear Bibeault ]
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so you mean to say that when translating a JSP in to servlet this will be used and the tag body will be included in the servlet class?Then how can tag show dynamic data?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I mean just what I said. This class is used by the container to hold information garnered from the TLD file at page translation time. If a tag implmentation wants to access it for any reason, it is availble to the Tag Extra Class defined for the tag (if any).

It has nothing to do with the run-time mechanism of the tags.
[ January 12, 2006: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic