Hi all,
I'm trying to setup a simple session login
JSP page
servlet. Basically, I have the following files:
1) login.jsp
2) index.jsp
3) SessionLogin (Servlet)
What should happen is after success fully logging in (login.jsp uses SessionLogin Servlet) goes to the website index (index.jsp).
Everything compiles and runs fine, except the both doGet *and* doPost go to index.jsp...regardless if the username or password is right or wrong. I'm unsure what I doing wrong here.
Here are the file contents:
login.jsp index.jsp SessionLogin.java Any help to get me in the right direction is much appreciated. Thanks in advance!
PS - I don't know if it matters, but I'm using netbeans 5.0,
tomcat 5, postgresql 8.1