Hi, Thanks for ur response. I could not use JSTL because we are using older version of
JSP and i cant upgrade.
So I did this. I set a form attribute to true(used it as a flag) if the value is either of the two options and then used the logic:equal to check that the flag is set or not. It worked.