users@woodstock.java.net

Re: How to use login component?

From: Ratnadeep Bhattacharjee <Ratnadeep.Bhattacharjee_at_Sun.COM>
Date: Thu, 12 Jun 2008 12:04:46 -0400

Stefan Bley wrote:
> I used the jsp login mechanism
>
> <form action="j_security_check" method="POST">
> Username:<input type="text" name="j_username"><br>
> Password:<input type="password" name="j_password">
> <input type="submit" value="Login">
> </form>
>
> to implement authentication. It checks against a jdbcRealm configured in my
> Glassfish app server.
> Now I wanted to use the webuijsf components instead, but obviously I can't
> just replace form by webuijsf:form. I thought I would have to use
> webuijsf:login instead, but I don't get a clue how to use it. I was going
> through the samples and found those login module implementations. Do I have
> to create one?
>
Yes.
> Is there a simple way to forward username and password input to the jdbc
> authentication provided by Glassfish?
>
You could create a simple LoginModule implementation that does this job.
The sample LoginModule implementations should help.

-Deep.

> Regards, Stevy
>
>
>