tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Buckley" <briankbuck...@attbi.com>
Subject public static final variables
Date Mon, 05 May 2003 15:46:37 GMT
Hello,

Is there a good technique to place public static final varibles into the JSP
namespace so that one can access them using the EL?

One can of course pollute one's JSPs with scriptlets/c_rt tags to get the
job done

<% application.setAttribute("ONE",MyEnum.ONE); %>
or
<c_rt:set var="TWO" value="<%=MyEnum.TWO%>" />

Ugly, rote, error prone.

Is there a better way?  For example, is there a tag that dumps variables
into the JSP namespace using reflection?

Brian



---------------------------------------------------------------------
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