tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oded Arbel <>
Subject Problem with implementing tag handlers
Date Mon, 25 Jul 2005 19:24:55 GMT

I'm using tomcat 5.0.28 and I'm writing tags which are being reused by 
the TagHandlerPool.

Now my problem is that I have an attribute setter setName(), for an 
optional attribute, and I want to know whether it was called for each 
invocation or not. I added a boolean field which gets set in setName(), 
but it is of course isn't reset when the tag is invoked again. 

According to the tutorials I've read, doStartTag() should be called when 
the tag is first encountered, before all setters are called. so I added 
a reset to the flag there. Apparently, with tomcat 5.0.28 this is not 
the case and doStartTag() is being invoked after all attribute setters 
are called. Is this done on purpose  ? Was the standard changed since 
the tutorials I've read were published ?

Oded Arbel
m-Wise mobile solutions

+972-9-9611212 (204)

Never do card tricks for the group you play poker with.

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

View raw message