Ai,

In the action that precedes the display of the page, set the form bean's
property to contain the text that you want.

Also, take advantage of the value attribute of <html:textarea> when you
require it.

Thanks,
Paul

-----Original Message-----
From: Ai Pham [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 28, 2005 1:14 PM
To: user@struts.apache.org
Subject: How can I prepopulate a textarea struts form ?


Hi,

How can I prepopulate a textarea struts form (using 
<html:textArea></html:textArea>) with dynamic data ?

I can prepopulate a text area using <textArea><%=data%></textArea> , but I 
have some problem to preserve any updated data whenever the struts reload 
the page again (It's the same as replying an email and uploading some 
attachment files).

Thank you for your help.

Sincerely,

Ai

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments, contains 
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New 
Jersey, USA 08889), and/or its affiliates (which may be known outside the 
United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as 
Banyu) that may be confidential, proprietary copyrighted and/or legally 
privileged. It is intended solely for the use of the individual or entity named 
on this message.  If you are not the intended recipient, and have received this 
message in error, please notify us immediately by reply e-mail and then delete 
it from your system.
------------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to