You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Ren� Zanner <re...@accelsis.de> on 2003/03/11 11:18:02 UTC

Java constants as attribute values

Hello,

I have a question regarding usage of Java Constants as attribute values.

In STRUTS I can do the following:

<bean:define id="myBean" name="<%= MyConstants.SESSION_OBJECT %>"
scope="session"/>

In JSTL, I wanted to do something similar, like:

<core:set var="myBean" value="${sessionScope.<%= MyConstants.SESSION_OBJECT
%>}"/>

(I know that the syntax is not correct!)

It seems that it's not really possible to do something like that with JSTL.
Anyway - does anybody have a hint what's the correct syntax or have a
work-around to use Java-Constants as attribute names in JSTL?


GreetinX,

René Zanner


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