Laurie Harper a écrit :

Emmanuel.Leguy wrote:

Hello,

I use the following code in a jsp:

<logic:present name="person">
        <html:text property="name" " value='<%= person.getName() %>'/>
</logic:present>

If 'person' is not present <%= person.getName() %> is compiled and I get this error: membreLIFL cannot be resolved

If i use this code:

<logic:present name="person">
<input type="text" name="name" value="<bean:write name="person" property="name"/>"/>
</logic:present>

No problem.

How can i use the html:text tag?


Did you try this?

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

L.

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.

Thanks,

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