tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Henderson" <...@metafile.com>
Subject RE: 4.1.12 JSP Tag Lifecycle -- Where to re-initialize tag?
Date Thu, 12 Dec 2002 20:14:50 GMT
Custom tags can also implement the TryCatchFinally interface.  Use the
doFinally() method to RE-initialize all instance variables that you don't
want to maintain since last usage.  I had a problem switching from Tomcat
4.0 to 4.1.

-----Original Message-----
From: Tim Moore [mailto:tmoore@blackboard.com]
Sent: Thursday, December 12, 2002 1:52 PM
To: Tomcat Users List
Subject: RE: 4.1.12 JSP Tag Lifecycle -- Where to re-initialize tag?


Mostly in doStartTag. See
http://jakarta.apache.org/taglibs/guidelines.html for more tips.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


> -----Original Message-----
> From: Will Hartung [mailto:willh@msoft.com] 
> Sent: Thursday, December 12, 2002 2:34 PM
> To: Tomcat Users List
> Subject: 4.1.12 JSP Tag Lifecycle -- Where to re-initialize tag?
> 
> 
> In out port of code from 3.2 to 4.1, we're encountering some 
> problems with how Tomcat reuses our tags.
> 
> I looked at the code, and TagHandlerPool does not call the 
> 'release' method of the tag unless the pool is full (this is 
> within the reuse method).
> 
> My question, then, where is the appropriate place to 
> re-initialize internal properties for a jsp tag?
> 
> The life cycle diagram doesn't really have a "precise" place 
> to reinitialize the content to their defaults, so I'm curious 
> where others are putting this kind of code.
> 
> Regards,
> 
> Will Hartung
> (willh@msoft.com)

--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>

Mime
View raw message