I have to compare an enum in my <s:if> tag. The code i have written is
Here getMyEnum will return me an enum object of type MyEnum. I need to check if the object's string value is equal to "x" or not. I know this code is not correct. But i tried a lot of things like using toString() of enum and all. Can somebody help please.