struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Reumann" <strut...@reumann.net>
Subject Re: using Constants from JSTL .....
Date Thu, 08 Jul 2004 13:43:11 GMT
On Thu, 08 Jul 2004 13:49:11 +0200, Bryan Hunt <admin@revoltingdigits.com>  
wrote:

> <c:set var="emailNotifications"  
> value="${scope[${Constants.EMAIL_NOTIFICATIONS}]}"></c:set>

Actually I haven't seen the 'scope' property like that, but have you tried  
(assuming ApplicationScope)...

<c:set var="emailNotifications"  
value="${servletContext[Constants.EMAIL_NOTIFICATIONS]}"/>

The above should work assuming you have a Constants class that is in  
Application scope and Constants is either a Map (with a key  
EMAIL_NOTFICATIONS) or a regular bean with a getEMAIL_NOTIFICATIONS method  
in it.

-- 
Rick

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


Mime
View raw message