tomcat-taglibs-user mailing list archives

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

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); %>
<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?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message