  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Const in JSTL | Const in JSTL 2004-02-12 - By Lakshmeenarayana
Back hi.. I think you can use Run Time based version of JSTL... Its similar to accessing static variable in a scriplet code of JSP. In expression language version of JSTL.. I am not sure..
cheers..
-- --Original Message-- -- From: A mailing list about Java Server Pages specification and reference [mailto:JSP-INTEREST@(protected)]On Behalf Of Karthik Arun Sent: Thursday, February 12, 2004 2:12 PM To: JSP-INTEREST@(protected) Subject: Const in JSTL
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) with body: "signoff JSP-INTEREST". For digest: mailto listserv@(protected) with body: "set JSP-INTEREST DIGEST".
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
=========================================================================== To unsubscribe: mailto listserv@(protected) with body: "signoff JSP-INTEREST". For digest: mailto listserv@(protected) with body: "set JSP-INTEREST DIGEST".
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
|
|
 |