tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Hartung" <>
Subject Re: Custom tag life cycle
Date Mon, 03 Feb 2003 18:38:19 GMT
> From: "Tim Moore" <>
> Sent: Monday, February 03, 2003 9:30 AM
> Subject: RE: Custom tag life cycle

> But I would do the initialization in doStartTag rather than doEndTag.
> The latter may not be called if an exception is thrown from within the
> tag body.

The problem here is that the doStartTag is done after all of the properties
are set.

So, you don't know if a property value has been set from the current tag
invocation or an earlier tag invocation.

I think Felipes idea of using the doFinally as a "reset to default
contructed state" is the smartest thing. I'd like to hope that the new JSP
spec clarifies the lifecycle a bit better, taking in to account the
aggressive caching that the containers are doing now.


Will Hartung

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

View raw message