You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michel Erard <er...@hta-bi.bfh.ch> on 2005/04/21 10:39:38 UTC
form reopens same page
Hello,
I'm making some tests with the authentication framework. Now I have a
problem with the login form:
<form target="do-login" method="POST">
<table>
<tr>
<td>
<i18n:text>USERNAME</i18n:text>
</td>
<td>
<input type="text" name="userid"/>
</td>
</tr>
<tr>
<td>
<i18n:text>PASSWORD</i18n:text>
</td>
<td>
<input type="password"
name="password"/>
</td>
</tr>
</table>
<br/>
<input type="submit">Login</input>
</form>
If I push the login button it reopens the same page on a new browser
window, but I want to go into my pipline:
<map:match pattern="do-login">
<!-- try to login -->
<map:act type="auth-login">
<map:parameter name="handler" value="dbauthentication"/>
<map:parameter name="parameter_userid"
value="{request-param:userid}"/>
<map:parameter name="parameter_password"
value="{request-param:password}"/>
<map:redirect-to uri="index"/>
</map:act>
<!-- something was wrong, try it again -->
<map:redirect-to uri="login"/>
</map:match>
Does someone see my misstake?
Thanks,
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: form reopens same page
Posted by Roberto Marra <rm...@montefiore.ch>.
Hi Michel,
let me know, are you sure that the value that you pass to the connectiondb
are correct? The db works properly? Seems are stupid question but I spend
some time with same problem, but the real problem was that I couldn't
connect to the db & I realize that only when I check the log file.
Regards
Roberto
----- Original Message -----
From: "Michel Erard" <er...@hta-bi.bfh.ch>
To: <us...@cocoon.apache.org>
Sent: Thursday, April 21, 2005 10:39 AM
Subject: form reopens same page
> Hello,
>
> I'm making some tests with the authentication framework. Now I have a
> problem with the login form:
>
> <form target="do-login" method="POST">
> <table>
> <tr>
> <td>
> <i18n:text>USERNAME</i18n:text>
> </td>
> <td>
> <input type="text" name="userid"/>
> </td>
> </tr>
> <tr>
> <td>
> <i18n:text>PASSWORD</i18n:text>
> </td>
> <td>
> <input type="password"
> name="password"/>
> </td>
> </tr>
> </table>
> <br/>
> <input type="submit">Login</input>
> </form>
>
> If I push the login button it reopens the same page on a new browser
> window, but I want to go into my pipline:
>
> <map:match pattern="do-login">
> <!-- try to login -->
> <map:act type="auth-login">
> <map:parameter name="handler" value="dbauthentication"/>
> <map:parameter name="parameter_userid"
> value="{request-param:userid}"/>
> <map:parameter name="parameter_password"
> value="{request-param:password}"/>
> <map:redirect-to uri="index"/>
> </map:act>
> <!-- something was wrong, try it again -->
> <map:redirect-to uri="login"/>
> </map:match>
>
> Does someone see my misstake?
>
> Thanks,
>
> Mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: form reopens same page
Posted by Joachim Breitsprecher <jb...@dserv.net>.
Michel Erard wrote:
> Does someone see my misstake?
Yes :-)
You wrote <form target="do-login" ...> but actually it should be:
<form action="do-login" ...>
;-)
HTH,
Joachim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org