tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject RE: accessing static fields/methods from a static class using jstl el
Date Wed, 05 Feb 2003 20:04:31 GMT


On Wed, 5 Feb 2003, Karr, David wrote:

> The JSTL EL can reference javabean properties, maps, and collections.
> That's it.  The JSTL specification describes this, although I wish it
> had a concise statement to this effect.  You sort of have to figure this
> out by deduction.

By javabean properties, does that only mean getXxx, or will it actually
handle 'xxx' too?   ie) public String xxx; etc.

> One curious strategy for accessing static variables would be to create
> an object that gets associated with another class, which uses reflection
> to load all the "static final" members into a map.  You could then
> reference the map entries in the JSTL EL.  Obviously, you would have to
> put that created object into one of the available scopes.

Not being able to use static properties is a bit crappy. Who do we go kick
to get them? JSTL JSR? Shawn? JSP JSR?

Hen


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


Mime
View raw message