This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using c:if  RSS feed

 
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
Posts: 66142
141
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: 22374
42
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
Boost this thread!