You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Oded Arbel <od...@m-wise.com> on 2005/07/25 21:24:55 UTC

Problem with implementing tag handlers

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
oded@m-wise.com

+972-9-9611212 (204)
+972-54-7340014

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

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org