Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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: 9610
37
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!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!