Bonjour,

 

Content de voir qu�il existe une communaut� cocoon francaise.

Voila mon probl�me : 

 

A chaque form-validation (utilisation de    <map:act type="form-validator">)
, toutes les infos de session stock�es auparavant (<session:set-attribute
name="xxxxx) disparaissent !!

 

Je dois absolument stocker une variable de session, qui n�� rien avoir avec
une validation, or chaque validation vire la variable. Dois-je quand m�me
pr�ciser cette variable dans le fichier descriptor ?

 

Quelqu�un a-t-il une id�e ?

 

Merci d�avance

 

Le bloc (qui marche bien d�ailleurs)

 

<map:match pattern="asp*/*/do-login">

        <!-- first validate whether submitted values are ok -->

        <map:act type="form-validator">

          <map:parameter name="descriptor"
value="context://sample/descriptors/params.xml"/>

          <map:parameter name="validate" value="login,password"/>

          <!-- now try to log in -->

          <map:act type="db-authenticator">

            <map:parameter name="descriptor"
value="context://sample/descriptors/auth.xml"/>

            <!-- now go to protected area -->

            <map:redirect-to uri="login_ok.htm"/>

          </map:act>

        </map:act>

        <!-- something was wrong, try it again -->

        <map:redirect-to uri="login_nok.htm"/>

      </map:match>

Répondre à