You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ha...@speakeasy.net on 2003/06/03 19:59:22 UTC
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Bean:write in a html:textarea value property...?
Posted by Haytham Samad <ha...@speakeasy.net>.
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:brad.handy@williamstonfmc.org]
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: bhandy@arbor.edu
Spring Arbor University |
-------------------------------------------------
Sun Certified Programmer for the Java 2 Platform
-------------------------------------------------
-----Original Message-----
From: haytham@speakeasy.net [mailto:haytham@speakeasy.net]
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Bean:write in a html:textarea value property...?
Posted by "Bradley M. Handy" <br...@williamstonfmc.org>.
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: bhandy@arbor.edu
Spring Arbor University |
-------------------------------------------------
Sun Certified Programmer for the Java 2 Platform
-------------------------------------------------
-----Original Message-----
From: haytham@speakeasy.net [mailto:haytham@speakeasy.net]
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org