You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kamholz, Keith (corp-staff) USX" <kk...@moog.com> on 2002/08/16 15:27:25 UTC

RE: how can i set up the value of the html:text and html:textarea ?

Hey,
Is msgBoard the form bean associated with that form?  If so and if you're
only trying to display the current data when the user hits the form, you
don't need to specify the value.  Struts will automatically pre-populate the
form for you.
Is this what you're trying to do?

- Keith
http://www.buffalo.edu/~kkamholz


-----Original Message-----
From: congzhebin [mailto:zhebincong@jhtop.com]
Sent: Friday, August 16, 2002 9:06 AM
To: struts-user@jakarta.apache.org
Subject: how can i set up the value of the html:text and html:textarea?


hello
i want to setup the value of html:text and html:textarea,but both of the
following two expression don't work:

<html:text property="name" size="20" value=<bean:write name="msgBoard"
property="name" scope="session"/>/>


<html:text property="name" size="20" value="<bean:write name="msgBoard"
property="name" scope="session"/>"/>

who can help me? 

thank you very much


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>