On Tue, 12 Mar 2002, Henri Yandell wrote:

> How about using the existing Jakarta JNDI taglib? Does this fit poorly
> with JSTL? (quite likely). How about listing where it fits poorly so
> it can be modified to fit JSTL?
> 
> Though there is a lack of enthusiasm if JSTL 1.1 will suck it in I
> guess. I've not figured out the whole relationship between taglibs and
> jstl yet. Do they solve the same thing with a different approach, or
> are some being deprecated. Pretty much a case by case answer I think.

Yeah, I think that's been the general consensus.  Broadly speaking, I
think there are at least three options for each individual taglib:

 - Deprecate in favor of JSTL
 - Modify to integrate cleanly with JSTL
 - No change necessary to play nicely with JSTL

Of course, the decisions can change for each taglib as time goes on, if
JSTL gains new features.

There are only a handful of things that a Jakarta Taglibs taglib would
probably want to in order to integrate with JSTL.  The first is to follow
the 'var' and 'scope' conventions for storing scoped variables.  This lets
any tag be used as "input" to JSTL tags.

Second, individual taglibs may wish to consider using the JSTL RI's
expression-language support, in order to "emulate" the generic expression
acceptance that will likely be part of JSP 1.3.  This lets any tag receive
"output" from JSTL.

Third, tags that loop or act as simple conditionals might want to consider
extending the new standard LoopTagSupport and ConditionalTagSupport
interfaces.  This is primarily for simplicity and to help ensure
consistent behavior.

I'd also love to see more use of TagLibraryValidators in Jakarta Taglibs,
now that JSTL uses them.  This is separate from other types of
integration, but I wrote the JSTL TLVs to be easy to learn from (although
they're somewhat intricate since they use SAX), so I'm hoping they'll be
useful.

Of course, these are just my personal suggestions for a near-term
direction for Jakarta Taglibs; I speak just as a single committer. But my
hope is that integration with JSTL will easily gain consensus, and overall
I think it'll be pretty easy to achieve.

--
Shawn Bayern
Author, "JSP Standard Tag Library"  http://www.jstlbook.com
(coming this spring from Manning Publications)


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to