Karr, David wrote:
The JSTL EL references JavaBeans properties, collections, and maps. That's it. If you want to reference a constant, you'll have to have your business or setup logic put the constant into a JavaBean property, collection, or map.

What we did was create a servlet context listener that using reflection to inspect a Constants object and store these values as application scope attributes. This allowed...


session.getAttribute(Constant.BLAH)

to be equivalent to

$sessionScope[BLAH]

The dynamic reflector meant we had no extra work to expose these constant values to EL as we added them for our Java code.

--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to