aspose file tools*
The moose likes JSP and the fly likes javax.servlet.jsp.tagext  TagLibraryInfo class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "javax.servlet.jsp.tagext  TagLibraryInfo class" Watch "javax.servlet.jsp.tagext  TagLibraryInfo class" New topic
Author

javax.servlet.jsp.tagext TagLibraryInfo class

Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
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

Joined: Jan 10, 2002
Posts: 61766
    
  67

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
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

Joined: Jan 10, 2002
Posts: 61766
    
  67

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.servlet.jsp.tagext TagLibraryInfo class