scripter73
Programmer
Hi,
I want to set a session variable that indicates whether a login was successful. I have the following in my login page:
if (Login's Successful){
s.setAttribute("loginStatus",false);
response.sendRedirect("loginInvalid.jsp");
}
else{
s.setAttribute("loginStatus",true);
response.sendRedirect("index.jsp");
}
The problem is the setAttribute takes(java.lang.String,java.lang.Object).
How can I set a session attribute? Should I just set another string?
Thanks in advance.
scripter73
Change Your Thinking, Change Your Life.
I want to set a session variable that indicates whether a login was successful. I have the following in my login page:
if (Login's Successful){
s.setAttribute("loginStatus",false);
response.sendRedirect("loginInvalid.jsp");
}
else{
s.setAttribute("loginStatus",true);
response.sendRedirect("index.jsp");
}
The problem is the setAttribute takes(java.lang.String,java.lang.Object).
How can I set a session attribute? Should I just set another string?
Thanks in advance.
scripter73
Change Your Thinking, Change Your Life.