The expressions you are using are OGNL expresssions, not Java expressions. The expression "#{session.admin}" is a valid OGNL expression, while "#{session.admin.trim()}" is not.
Thank you for your help! I figured out the problem. I initially set the session variable as a String (session.setAttribute("admin", "Y")). Changing it to a char (session.setAttribute("admin", 'Y')) solved the problem.
crispy bacon. crispy tiny ad:
New web page for Paul's Rocket Mass Heaters movies