jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Instanceof operator in if tag
Date Tue, 21 Jan 2003 01:16:06 GMT


On Mon, 20 Jan 2003, Emmanuel Boudrant wrote:

> Date: Mon, 20 Jan 2003 11:28:45 +0100 (CET)
> From: Emmanuel Boudrant <b7st@yahoo.fr>
> Reply-To: Tag Libraries Developers List <taglibs-dev@jakarta.apache.org>
> To: taglibs-dev@jakarta.apache.org
> Subject: Instanceof operator in if tag
>
> Hi,
>
> I post a bug in Struts bugzilla about the creation of a tag <logic:instanceof.../>.
> An user said the instanceof is a reserved word in the JSTL and it's recommended to deprecate
the
> struts BEAN and LOGIC tag and switch to JSTL.
>
> Here the bug repport : http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15829
>
> I'm volunteer to implement the instanceof operator in Jakarta JSTL.
>

The challenge is that the Jakarta JSTL library (standard.jar) implements
the JSTL spec -- you can't just arbitrarily modify it to add new
functionality without the spec being changed as well.

The other thing you should be aware of is that the EL language definition
is getting absorbed into JSP 2.0, so you'll be able to use it everywhere
in your page (not just as attribute values to JSTL tags).

> Is there a quickstart to create an operator ?
>

I'd look at the sources for the EL interpreter.

> I need to create the InstanceofOperator class and update the
> ELParser.jj, isn't it ?
>
> BTW: Where I can see that instanceof word is reserved in JSTL ?
>

The JSTL 1.0 spec, Appendix A defines the exact language.  Section A.4 has
the set of reserved words, including "instanceof".

> Thx,
> -emmanuel

Craig


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


Mime
View raw message