Hi All,
Say I have an "String[] colors" which is populated with thse
values{"red","blue","green","yellow","white","black"}, the colors are declared
in action class.
I have an colorList(java.util.List<String>) which is having all colors. In
UI when I use <s:iterator> for looping colorList, when color value from
colorList exists in "colors array" then I'd like to show "Found" message, if
not I need to display "Not Found" message.
How to use <s:if> to test color value from colorList exists in colors array??
Can anyone please let me know, how to use indexOf in <s:if> condition.
Thanks in advance.
Regards,
Sharath.