"G Ramesh [Support]" wrote:
> Hi,
>
> Could any one explain me about the Tag Library Implementation Classes's
> Scope and its life cycle.
> is it like jsp-bean ? but bean is having a scope specified by the user e.g.
> page, request, application etc.,
>
> Please explain me!!!
>
Effectively, the lifetime of a custom tag instance has page scope, although you
won't be able to see it with PageContext.getAttribute() because it is not itself an
attribute. A new instance of the custom tag is created by the servlet container
each time it is used on a page. However, custom tags can be used to *create* beans
that have any scope you like, as long as you declare this using the associated
TagExtraInfo class. (This is what the implementation of <jsp:useBean> actually
does, for example.)
>
> regards,
> G Ramesh
>
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets