LOL! Nasty words indeed, Martin... ones that will draw the ire of JSPI's
entire community, except for those of us who've read the spec (or are
willing to).

Anyway, tagdependent means what it says: the tag decides what to do with the
body. There's certainly no requirement that the tag body is sent to the
JspWriter - a tag can consume its content very easily.


>From: Martin Cooper <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Tag Library Descriptor problem - What does tagdependent mean?
>Date: Thu, 15 Feb 2001 22:02:35 -0800
>
>Read the spec.
>
>----- Original Message -----
>From: "Thai Thanh Ha" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, February 15, 2001 9:32 PM
>Subject: Tag Library Descriptor problem - What does tagdependent mean?
>
>
> >   Hi gurus!
> >
> >   I have a problem when writing a tag library. The problem is:
> >
> >   I want to get the content of a custom tag in the corresponding tag
> > handler, but I don't want that content is displayed in the browser. I
>have
> > written:
> >
> >         <tag>
> >                 <name>testiterationtag</name>
> >                 <tagclass>com.mycompany.TestIterationTag</tagclass>
> >                 <bodycontent>tagdependent</bodycontent>
> >         </tag>
> >
> > in my tag library descriptor. And this is the extract from my JSP page:
> >
> >     <%@ taglib uri="WEB-INF/testtag.tld" prefix="eg" %>
> >     <eg:testiterationtag>aa</eg:testiterationtag>
> >
> >   I think "aa" will not be displayed. But it alway is displayed in the
> > browser.
> >
> >   So why is it displayed? When should we use the tagdependent value in
>tag
> > library descriptor? I can't find any examples using tagdependent value.
> > Thanks in advance.
> >
> >   Regards,
> >   Thai
> >
> >
>===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
> > 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
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>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

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to