Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Const in JSTL

Karthik Arun

2004-02-12

Replies:

hi All

How can I use a Const (final static) member of a class MyConstants in JSTL??
I would like to do something like this:

<c:if test="${state == MyConstants.SOME_CONST}" >
<c:set value="${stateCode + '<br><b>' + singleObjToProcess.stateStr +
'</b><br>'}" var="stateCode" />
</c:if>

where SOME_CONST is a const in MyConstants class.state is a loop iterating
variable, stateCode is some member variable of singleObjToProcess object
that is in the page scope.

Can somebody let me know how I can use the constant in the JSTL..????

Regards,
Arun Karthik R



===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com


©2008 junlu.com - Jax Systems, LLC, U.S.A.