Hi all,
All thanks to Bryan Basham and Boris from Kobrix for their help on my last
question.
I have come across a bit of strange behaviour which I managed to get around,
but it is still confusing. If you declare a body tag that declares a
variable at begin as follows:
<tag>
<name>itr</name>
<tag-class>foo.ItrTag</tag-class>
<body-content>JSP</body-content>
<variable>
<name-given>currentObject</name-given>
<variable-class>foo.Object</variable-class>
<declare>true</declare>
<scope>AT_BEGIN</scope>
</variable>
</tag>
Tomcat (4.1) only synchronizes the "currentObject" after doStartTag() if it
returns BodyTag.EVAL_BODY_BUFFERED. Otherwise (EVAL_BODY_INCLUDE), it gets
synchronized after doAfterBody() but not after doStartTag(). Is there a
specific reason for this behaviour? Surely it is not out of the ordinary to
want JSP using the variable even if the body is not buffered. I would really
appreciate it if someone can explain this to me!
Thanks in advance
Bob
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com