This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL test using final static constant defined in a Class

 
Nitin Bhardwaj
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Just suppose I have the following class in which I've defined constants and static utility functions:



I want to replace the scriptlets in JSP (somewhat like given below) with JSTL <c:if test>:


Request you to help.

Best Regards,
Nitin
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64692
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no direct way. But you can create a Map that contains those values and store it in one of the scopes.

For a more detailed description, see this article.
 
Nitin Bhardwaj
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:There is no direct way. But you can create a Map that contains those values and store it in one of the scopes.

For a more detailed description, see this article.

Yeah that is a good alternative. Thank You for verifying that there is no direct way!
Best Regards,
Nitin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic