The only way to pull something like this off is to have the "Create a new
user account" go to some webapp logic that adds new users to the actual
database that JDBCRealm is talking to.  It will be instantly available for
use by the authentication logic.

You still won't be able to have a user create a new account and then be
accepted as already having logged in, though, without writing a custom
Valve implementation that does this for you (and, obviously, is Tomcat
specific).

Craig


On Mon, 27 Aug 2001, Bragg, Casey wrote:

> Date: Mon, 27 Aug 2001 21:01:48 -0500
> From: "Bragg, Casey" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: How to force authentication from JSP?
>
> Is there a way to force a user to be authenticates as 'Guest' for example?
>
> Running Tomcat 4.0b7.. JDBCRealm...
>
> Is it possible for a JSP (not through javascript) to do something along the
> following lines :
>
>   <jsp:forward page="j_security_check">
>       <jsp:param name="j_username" value="<%=p_username%>" />
>       <jsp:param name="j_password" value="<%=p_password%>" />
>   </jsp:forward>
>
> The above doesn't work... 404 error.. which seems logical since
> j_security_check isn't not really a page.
>
> What I really need this for is where I have a 'Create new user account'
> page.  Once the account is created I should have already logged the user in
> for convenience.
>
> I know this has been asked before, but I couldn't find the answer in the
> archives.
>
> Thanks so much for your help!
>
> ...Casey
>

Reply via email to