Wendy Smoak a écrit :

From: "Emmanuel.Leguy" <[EMAIL PROTECTED]>

Laurie Harper a écrit :

Did you try this?

    <logic:present name="person">
        <html:text name="person" property="name"/>
    </logic:present>

No. I didn't try this. That works but if an error ocure (validate), the form is displayed with the person.name value and not with the formbean.name value.


In Action code, before forwarding to the JSP, look up the Person object and pre-populate the form bean's 'name' property.

Then you have the choice of checking for the 'person' bean or the form bean's 'name' property in <logic:present> before displaying the text field. (From what you've posted I'm not sure which is more appropriate.)

Is it possible with a dynaActionForm?

Thanx,

Manu.

--
Emmanuel Leguy                  LIFL - UMR8022 CNRS - Bat M3
Tel: +33 3 28 77 85 32          USTL - Universite de Lille 1
Fax: +33 3 28 77 85 37          59655 VILLENEUVE D'ASCQ CEDEX - FRANCE

mailto:[EMAIL PROTECTED]        
http://www.lifl.fr/ANNUAIRE/employee.php?login=leguye

Ce mail est signe par un certificat X509 fourni par le CNRS
La verification de ce certificat peut etre faite a l'adresse suivante: http://igc.services.cnrs.fr/CNRS-Standard/recherche.html

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to