This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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.