cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roberto Marra" <rma...@montefiore.ch>
Subject Re: form reopens same page
Date Thu, 21 Apr 2005 08:53:37 GMT
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" <erarm@hta-bi.bfh.ch>
To: <users@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


Mime
View raw message