[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sdx-developers] Migration
From: |
Jos Snellings |
Subject: |
Re: [sdx-developers] Migration |
Date: |
Tue, 29 Oct 2002 16:20:57 +0100 |
Bonjour,
sdx:login fait le boulot quand on traite la réponse d'un formulaire login:
si le champ avec le userid s'appèle "id" et le mot de passe "pass" ,
je vous propose un petit exemple:
loginpage.xsp contient :
<loginForm/>
<sdx:login>
...
<sdx:fallback>
<non_identifie msg="get lost"/>
</sdx:fallback>
</sdx:login>
Et dans le xsl correspondant, on a:
> <font class="text">
> If you have an account please identify. Please leave otherwise!
> </font>
> <blockquote>
> <form name="loginForm" method="post"
> action="{/sdx:document/@uri}">
> <table cellpadding="5" cellspacing="0" border="0">
> <tr valign="top">
> <td class="text">User code :</td>
> <td><input type="text" name="id"
> size="30"/></td>
> </tr>
> <tr valign="top">
> <td class="text">Password :</td>
> <td><input type="password" name="pass"
> size="30"/></td>
> </tr>
> <tr valign="top">
> <td> </td>
> <td><input type="submit"
> value="Login"/></td>
> </tr>
> </table>
> </form>
> </blockquote>
A bientôt,
Jos Snellings