I am working on logins/registrations using just JSP, Servlets and JDBC.  By
default, when a user gets to the home page (JSP), they can (currently)
either Log In or Register.

Everything with registering and logging in is working perfectly fine, but
what I would like to do is have the browser automatically forwarded to the
login page if they are already registered.  For example, if they are already
registered, when they browse to http://www.mysite.com/index.jsp, I want the
browser to automatically go to http://www.mysite.com/login.jsp instead.

I can do the forwarding part of this solution with no problem, but I'm not
sure of the best way to handle the check to see if they are already
registered.  When they create a new account, I create a cookie with the
appropriate information in it (which also works), but the JSP can't get
cookies from the implicit response object (I'm assuming) because the request
doesn't "exist" yet.

Is this the best way to approach this - or is there another way?  Any
suggestions would be appreciated.

Bob

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to