aspose file tools*
The moose likes JSP and the fly likes how to declare constants using jstl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to declare constants using jstl" Watch "how to declare constants using jstl" New topic

how to declare constants using jstl

srinu reddy

Joined: Oct 21, 2007
Posts: 12
plsease, tell me what is the equallent jstl code for the below java statement

<%public static final int NUM_STEPS = 5;%>

Thanks & Regards
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60045

There is no direct equivalent since that would make little sense in the context of the JSTL and EL.

If you would like to abstract out page-scoped variables at the top of a JSP file, you could use:

[ February 19, 2008: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: how to declare constants using jstl
Similar Threads
JSTL Example
Problems while using JSTL and EL together
Active/Inactive Rows using JSTL
java /jsp hidden fields
What does JSTL tags turn into ?