| Author |
Using c:if
|
Rajesh Khan
Ranch Hand
Joined: Oct 16, 2011
Posts: 230
|
|
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
Joined: Jan 10, 2002
Posts: 56529
|
|
<c:if test="${requestScope.val=='hello'}" >
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16487
|
|
|
Just do the obvious thing. (The obvious thing doesn't include escaping of quotes, or whatever those backslashes are for.)
|
 |
Rajesh Khan
Ranch Hand
Joined: Oct 16, 2011
Posts: 230
|
|
|
<c:if test="${requestScope.val=='hello'}" > worked
|
 |
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
|
|
concentrate above idiom! :)
|
 |
 |
|
|
subject: Using c:if
|
|
|