Hi I have a question about when custom tag lifecycle methods are invoked, any responses from the gurus would be much appreciated.
I have a nested row tag that shows data record(s) within a parent tag multiple times. I looked at the Jasper generated source and noticed that the object creation, setParent and setPageContext are invoked per row invocation. I.e. for the following: <my:loop times="4"> <my:helloparam name="Bob">Stuff</my:helloparam><br> </my:loop> The nested tag is retrieved from pool and initialised four times. The spec is not clear on whether this is required behaviour, or whether Tomcat has missed a possible optimisation. Ideally I would like the child within the parent to be initialised only once, so that I can obtain parameters from the parent only once and keep them. The advantage could be considerable if you have lots of initialisation per tag. I would like to know: 1) Is there a way (by tld declaration) to have the nested tag initialised only once within a parent? 2) Is what I want to do against the spec, or just against the way Tomcat works? The docs I have read do not say anything about /how many/ times the creation, setParent and setPageContext will happen. Thanks in advance Bob =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com