tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: svn commit: r909979 - /tomcat/tc6.0.x/trunk/STATUS.txt
Date Tue, 16 Feb 2010 05:03:59 GMT
2010/2/15 Mark Thomas <>:
> On 14/02/2010 06:47, wrote:
>> +    2. isImplemetedAsFragment() method is wrong.
>> +       1) A fragment can also be created with <jsp:attribute> when calling
a tag,
>> +         when the attribute is declared being of type JspFragment.
>> +         -see JSP.5.10 <jsp:attribute>, or the places where the following
method is called:
>> +         Generator#GeneratorVisitor#generateJspFragment(Node, String)
>> +
>> +       2) It should navigate up the parents chain. The SimpleTag can be one
>> +         of our parents, not necessary the immediate one.
> The name might be wrong. usesFragmentHelper might be better as that is
> actually what matters and it should be using the exact same logic as
> Generator to determine if a fragment helper is being used. If that isn't
> the case then there is a bug.

A JspFragment has its own scope of local variables. Thus, effectively
it should start with an empty map in
ScriptingVariableVisitor#scriptVars.  The usesFragmentHelper method
performs as if ScriptingVariableVisitor#scriptVars were empty, but
only for that very tag that caused that JspFragment to appear. Once we
try to nest a classic tag in it, it fails.

In r910395.I added a test that demonstrates that.  The alternative patch,
does work here.

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message