Useless Tag Library?
Inspired by this post, I wrote a tag library to expose the fields of my Contants.java class to my JSPs. It allows a user to specify a single variable using:
<appfuse:constants var="USER_KEY"/>
Or all variables:
<appfuse:constants/>
By default, it exposes the values from the Contants class imported into the tag library, but also allows a className variable to specify a different class. The main reason I wrote this was to prove it was possible. The second reason was to get around importing my Contants class (and using <%=Contants.VARNAME%>).
Interested? Read More ...
Posted by c tang on January 02, 2004 at 08:04 PM MST #