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 Android Security Essentials Live Lessons this week in the Android 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: 60785

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]
subject: how to declare constants using jstl
Similar Threads
java /jsp hidden fields
JSTL Example
Problems while using JSTL and EL together
What does JSTL tags turn into ?
Active/Inactive Rows using JSTL