Alex,
If you don't fill in the 'value' attribute , struts will call the
form.getRequisitionLines().getDescription() (where form is mapped in the
struts-config.xml file for your action) and populate the 'value' attribute.
However if you polulate the 'value' attribute, struts will show that value
as it is..(i.e think of it as a constant u want to display).
Hope this clarifies what u want to do.
cheers,
Amar..
-----Original Message-----
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 4:15 PM
To: Struts
Subject: Setting value to a textarea?
Hi,
I am trying to set the value of a textarea that I have created via:
<TD>
<html:textarea name="requisition" property="requisitionLines.description"
value="requisitionLines.pcitem.name" cols="20" rows="10">
</html:textarea>
</TD>
When the page is displayed the textarea text is populated with
"requisitionLines.pcitem.name" not the value held in the bean.
Could someone tell me what I am doing wrong?
Thanks
Alex