File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using c:if

 
Rajesh Khan
Ranch Hand
Posts: 230
  • 0
  • 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: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:if test="${requestScope.val=='hello'}" >
 
Paul Clapham
Sheriff
Pie
Posts: 20153
23
MySQL Database
  • 0
  • 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
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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