tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Luehe <Jan.Lu...@Sun.COM>
Subject RE: [PATCH] Iteration tags do not synchronize scripting variables after doStartTag
Date Wed, 08 Jan 2003 22:15:46 GMT
Dimitry:

> And JSP.10.5.9:
> "The scope value for a variable implies what methods may affect its
> value and thus
> where synchronization is needed:
>  - for NESTED, after doInitBody and doAfterBody for a tag handler
> implementing
> BodyTag, and after doStartTag otherwise.
>  - for AT_BEGIN, after doInitBody, doAfterBody, and doEndTag for a tag
> handler implementing BodyTag, and doStartTag and doEndTag otherwise."
> 
> There is nothing about synchronization *only* when doInitBody has
> *invoked*.

Actually, the above has been too simplistic, because it does not consider the
case where BodyTag.doStartTag() returns EVAL_BODY_INCLUDE and
doInitBody() is not called, giving the container no opportunity to
synchronize the variables before the body of the tag.

I've talked to the JSP 2.0 spec lead, who is going to clarify the spec
as you suggested.

I've also applied your latest patch.

Thanks!


Jan



--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message