In jstl, how do we
test if an attribute in scope which is of type '
String' is equal to another String value.
Suppose I have an attribute called 'class' in scope whose value is, say, 'TR1'. In scriptlets, I would do this -
In JSTL, the best I could come up with is as below
I searched the jstl function taglib and couldn't find an equals utility. Is there an easier way to do this, rather than setting up a scoped attribute for every string you want to test against?
Thanks,
Ram.