Thanks Brad.  That worked.  I was actually following using the previous form
because it was working fine when I am setting the value of an html:text tag
using value="<bean:write.../>".

Seems a little inconsistent that one works and the other does not.  Thanks
again.

Haytham

-----Original Message-----
From: Bradley M. Handy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 1:01 PM
To: 'Struts Users Mailing List'
Subject: RE: Bean:write in a html:textarea value property...?


Change you tags to be:

<html:textarea property="longDesc1" cols="20" rows="5">
<nested:write name="eventForm" property="longDesc1" scope="request"/>
</html:textarea>

Tags within properties are not interpreted.

Brad Handy


-------------------------------------------------
Bradley M. Handy                | Office: 517 750 6675
Programmer/Analyst      | Email: [EMAIL PROTECTED]
Spring Arbor University |
-------------------------------------------------
Sun Certified Programmer for the Java 2 Platform
-------------------------------------------------

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 1:59 PM
To: Struts Users Mailing List
Subject: Bean:write in a html:textarea value property...?

I have been trying to make the following work:

<html:textarea property="longDesc1" cols="20" rows="5"

value='<nested:write name="eventForm" property="longDesc1"
scope="request" />'/>

I started with this actually:

<html:textarea property="longDesc1" cols="20" rows="5"

value='<bean:write name="eventForm" property="longDesc1" scope="request"
/>'/>

But when I display the page, I get this in my textarea:

<nested:write name="eventForm" property="longDesc1" scope="request" />

Which is all the code I had set for the value of the textarea?  Not sure
why neither is working?  Do I have to use some sort of java scriptlet to
get the value of the eventForm bean?  I really did not think the nested
would work here but gave it a try anyway.

Thanks,

Haytham



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


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



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

Reply via email to