Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to declare constants using jstl

 
srinu reddy
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic