Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using c:if

 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having a problem testing the value of a variable using c:if i am currently trying something like (if val variable in request scope is equal to hello)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:if test="${requestScope.val=='hello'}" >
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just do the obvious thing. (The obvious thing doesn't include escaping of quotes, or whatever those backslashes are for.)
 
Rajesh Khan
Ranch Hand
Posts: 230
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:if test="${requestScope.val=='hello'}" > worked
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

concentrate above idiom! :)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic