jsp authentication

Hi All,

At the moment I am calling stored procedure and passing it username and password from login form. Than if login credentials are valid I set session variable called "username" to value of username from the login form.

This works just fine. the only thing is that my HTML code is cluttered with Java code. I want to be able to create a custom tag to do authentication than all I had to do would be to include that tag into every page that needs authentication. Question is: How I access session object from my tagHandler class?

Form based (container) authentication is not an option because my password is hash of username + password that user supplies. (As far as I understand containter authentication can only work if you have plain text passwords).

Your help would be highly appreciated.

Cheers,

Midrago

[856 byte] By [Midragoa] at [2007-11-27 9:28:59]
# 1
Please don't crosspost and proceed here http://forum.java.sun.com/thread.jspa?threadID=5190934
BalusCa at 2007-7-12 22:35:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...