tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Bayern <bay...@essentially.net>
Subject Re: How to pass parameters to method in c:if
Date Mon, 18 Mar 2002 19:43:45 GMT
On Mon, 18 Mar 2002, Trogrlic Zeljko wrote:

> Hello,
> 
> I'm writing a presentation of the latest JSTL, but I have a problem
> with one example.
> 
> In JSP, I need something like
> 
> <c:if test="${securityBean.check(request, response) }">
> 
> but it doesn't work. How can I pass parameters? All examples use only
> simple getters. If someone knows the answer please reply ASAP because
> I have a presentation in two days.
> 
> Thanks!

The JSTL expression language does not support method invocations on
objects.  You'll currently need to use a custom tag library or scriptlet
code (with the former being recommended over the latter) if you want to
access arbitrary methods and pass arguments to them.

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


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


Mime
View raw message