| Author |
How to test value of parameter using <s:if test> ?
|
Jonilie Echavez
Greenhorn
Joined: Jun 26, 2009
Posts: 20
|
|
Hi,
In the code below, I am able to display value of statusDesc
However, I wanted to check if the value returned by statusDesc is 'Active' and if so it performs something else, but this test doesn't work.
How should i test the value of statusDesc against a string?
Please help!
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
Can you please try this (i.e. replace single quotes with double and double with single)
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
Jonilie Echavez
Greenhorn
Joined: Jun 26, 2009
Posts: 20
|
|
|
Ankit, thanks heaps! That worked!
|
 |
 |
|
|
subject: How to test value of parameter using <s:if test> ?
|
|
|