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 "Gideon, Thomas" <Th...@B2eMarkets.com> on 2002/10/15 22:39:09 UTC
Implicit PageContext argument for EL fucntions (was RE: Beefing u
p JSTL EL in JSP 2)
+1
I think this is an excellent suggestion.
Thomas Gideon
Sr. Software Developer
B2eMarkets
301.230.2236 Tel.
301.230.2248 Fax.
thomas.gideon@B2eMarkets.com
www.B2eMarkets.com
> -----Original Message-----
> From: Christopher Lenz [mailto:cmlenz@gmx.de]
> Sent: Tuesday, October 15, 2002 4:21 PM
> To: Tag Libraries Users List
> Subject: Re: Beefing up JSTL EL in JSP 2
>
>
> On a somewhat related note, I've been wondering if the
> EL-functions as
> discussed here shouldn't have an implicit pageContext argument.
>
> For instance, if the TLD specified a function like:
>
> <function>
> <name>isUserInRole</name>
> <function-class>mypkg.MyFunctions</function-class>
> <function-signature>
> boolean isUserInRole(PageContext, String)
> </function-signature>
> </function>
>
> the page author could simply write:
>
> ${my:isUserInRole('editor')}
>
> without needing to pass the pageContext object. The EL-engine
> would take
> care about that. I personally think the page author would expect a
> EL-function to get informed about the page context automatically, and
> that many useful functions would need access to it.
>
> Anyway, I should probably send this to the JSP-group, just wanted to
> hear if anyone else thinks it'd be a good idea... Thoughts?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>