Thank you for your assistance. However, I changed the code and it still gives me the incorrect response.
Could the problem be that I'm comparing a String to a char? If so, how is this solved?
Joined: Feb 15, 2005
The condition goes inside the brackets. try
Joined: Oct 11, 2001
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.