• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to test value of parameter using <s:if test> ?

 
Jonilie Echavez
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please try this (i.e. replace single quotes with double and double with single)

 
Jonilie Echavez
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit, thanks heaps! That worked!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic