If i may take a guess the other two are EMPTY (signifying that absence of a
body) and JSP which signifies that the contents of the body may also (with
HTML,etc) contain JSP code. The servlet would treat the same accordingly.
I have a "feeling" (?) that TAGINDEPENDENT would perhaps mean that the
contents of the tag would be just plain HTML and one thing u could try would
be to put some JSP code in the same. my guess would be that the code would
appear as it is in the output HTML. It could also be perhaps mean that the
tag-body would not be able to "introduce changes" to the pageContext
referred environment in terms of say, setting page variables.
Just a guess -- any insights !?
Mayuresh
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Thai Thanh Ha
Sent: Friday, February 16, 2001 11:03 AM
To: [EMAIL PROTECTED]
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