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 Soft Skills this week in the Jobs Discussion 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: 61760
    
  67

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