Just send the authentication credentials through a redirect like:
response.sendRedirect(response.encodeRedirectURL("j_security_check?" +
J_USER_NAME + "=" + userName + "&" + J_PASSWORD + "=" + password));
Mike
On Fri, 2003-08-01 at 10:42, James Ward wrote:
> Erik,
> Thanks for the response. I am just not sure how to do this with form
> based auth and the j_security_check stuff. Any help would be greatly
> appreciated.
>
> -James
>
>
> On Fri, 2003-08-01 at 09:56, Erik Price wrote:
> > James Ward wrote:
> > > Has anyone figured out a cool way with JBoss and JAAS to make it so that
> > > when a user registers on a web page (ie. creates an account) they get
> > > automatically logged in?
> >
> > Assuming you have a servlet, or servlet-like class where you receive the
> > HTTP request that creates the new account (such as a Struts Action), why
> > not just include a redirect at the end of the class that auto-submits
> > the login using the newly-created username/password?
> >
> >
> > Erik
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> > Data Reports, E-commerce, Portals, and Forums are available now.
> > Download today and enter to win an XBOX or Visual Studio .NET.
> > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user