You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Yuri Peter Kazakov <yk...@valuecommerce.ne.jp> on 2002/04/02 03:54:41 UTC

RE: EL

Thank you,
I understand.

Maybe a stupid question, but why Java is not used as EL?
Is not it possible to just generate JSP script in the page with
minor substitution of variable names to pageContext.getAttribute() calls?

Sorry I am not very professional in this area yet,
so just a question.

Best regards,
Yuri. 

> -----Original Message-----
> From: Shawn Bayern [mailto:bayern@essentially.net]
> Sent: Sunday, March 31, 2002 6:46 AM
> To: Tag Libraries Users List
> Subject: Re: EL
> 
> 
> On Fri, 29 Mar 2002, Yuri Peter Kazakov wrote:
> 
> > Hello,
> > 
> > how can I use JS functions in EL, for example:
> > 
> > <c:if test="${ a.indexOf( b ) < 0 }">
> > 
> > doesn't work.
> > 
> > Any ideas?
> > 
> > Regards,
> > Yuri.
> 
> You can't.  The JSTL expression language is really just for simple
> references to request parameters, attributes, and other 
> commonly accessed
> data.  For more complex operations -- e.g., on Strings and 
> Collections --
> I suggest using custom tag libraries.  Having said that, the 
> EL may grow
> slightly to include some common functionality, either for 
> JSTL 1.0 or JSP
> 1.3.  These features are still being debated.
> 
> -- 
> Shawn Bayern
> Author, "JSP Standard Tag Library"  http://www.jstlbook.com
> (coming this summer from Manning Publications)
> 
> 
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>