Try adding this scriptlet just above the one that contains the if-check, it should show you what's happening:
Also you may want to read up on why it's a good idea to
AvoidTheEqualityOperator.
Also also, if Bear asks: I never told you to add a scriptlet to a
JSP.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.