tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11488] - Problem With Tag Pool Reuse Algorithm
Date Tue, 06 Aug 2002 19:12:50 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11488>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11488

Problem With Tag Pool Reuse Algorithm

jan.luehe@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME



------- Additional Comments From jan.luehe@sun.com  2002-08-06 19:12 -------
Craig,

I'm afraid I'm unable to reproduce this.

Tag pooling in jasper 2 considers only attribute names, not values,
when determining the appropriate tag handler pool.

The attached WAR file implements a custom tag (<mytags:foo>) which
simply prints out the values of its 'id', 'bar', and 'baz'
attributes. When I visit reuse.jsp, I get this result, as expected:

  id: abc bar: 123 baz: null 
  id: abc bar: null baz: 456 

In the generated servlet code (attached), we retrieve a tag handler for the
first tag like this:

  mytags.Foo _jspx_th_mytags_foo_0 = (mytags.Foo)
_jspx_tagPool_mytags_foo_id_bar.get(mytags.Foo.class);
      
and a tag handler for the 2nd tag like this:

  mytags.Foo _jspx_th_mytags_foo_1 = (mytags.Foo)
_jspx_tagPool_mytags_foo_id_baz.get(mytags.Foo.class);
    
As you can see, the name of the first tag handler pool contains
the attribute names of the first action ('id' and 'bar'),
and the name of the second pool contains the attribute names of
the 2nd action ('id' and 'baz'). Attribute values are ignored.

Perhaps you could send me a WAR file in which the problem exists?


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