This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to declare constants using jstl" Watch "how to declare constants using jstl" New topic
Author

how to declare constants using jstl

srinu reddy
Greenhorn

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

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

Thanks & Regards
srinu
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60072
    
  65

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