Menu

#2 domain attribute ignored by the QueryNamesTag.

open
nobody
None
5
2004-02-26
2004-02-26
Anonymous
No

I discovered strange behavour of the QueryNamesTag
class. Once the name variable is set by reading the
bodycontent, it cannot be changed anymore by the
bodycontent. This is beacause the name value gets
assigned, and the value only gets set if by the
bodycontent is it's null. Aldough threre a release()
method that cleans the variables, it does not get
called. I am not familiar with the jstl api, thus I
don't know when this methoud should be called. The
resulting behaviour is quite nasty: the QueryNamesTag
keeps on returning the same result.

I've fixed the problem by simply setting name = null at
the end of the doEnd() method.

the code:
<jmx:queryNames id="names" server="server"><c:out
value="${domain}"/>:*</jmx:queryNames>

the software:
tomcat 4.29
struts: 1.1.0
taglib 1.3.0

Discussion


Log in to post a comment.

MongoDB Logo MongoDB