|
I do a similar thing with servlets. I wrote a
servelt class called ProtectedResource. When its accessed, it retrieves the
current servlet session. Unless a value has been set in the current session, it
redirects the user to a logon page. the login page takes the login and password,
checks against the db, and if ok sets a value in the session. When redirecting
from the ProtectedResource I store the required page, so that aftyer a
successful login you get redirected. To make this secure, all I have to do now
is get tomcat working with SSL....
I don't know how JSP works, so I'm not sure how
easy this would translate. The code I got was from the Servlet Programming book
from O'Reilly. Perhaps you could wrap all protected .jsp pages in a servlet? If
authorised it goes straight to the page for example..
sam
|
- plain text login Ryan
- Duplicate context initialization? David Wall
- Re: plain text login Rob Tanner
- Re: plain text login Tagunov Anthony
- Re: plain text login Sam Newman
- Re: plain text login Christian Rauh
