You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by as as <sa...@yahoo.com> on 2004/03/21 18:47:28 UTC
Bean:write
Hi,
In my logic:iterate tag, I want to pull out the value of the bean:write tag.
I am using following syntax.
something is probably wrong, as i am getting a compile error.
looking for right syntax
basically all i want to to is pull out the value of the bean:write tag.
Thanks in advance.
<% java.lang.String myValue = <bean:write name="teacher" property ="SSN"/>;.
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
RE: Bean:write
Posted by as as <sa...@yahoo.com>.
Thanks Robert,w ill try this now..
Has anyone also used graphing software (jfree) with struts...
looking for a open source implemntation on the same...
Thanks!
Robert Taylor <rt...@mulework.com> wrote:
Try using the following with JSTL:
or you can try the following using
If you are still getting a error make sure you are
using proper JavaBean naming conventions. You can find this in
the JavaBean specification.
robert
> -----Original Message-----
> From: as as [mailto:sam_struts@yahoo.com]
> Sent: Sunday, March 21, 2004 12:47 PM
> To: Struts Users Mailing List
> Subject: Bean:write
>
>
>
> Hi,
>
>
>
> In my logic:iterate tag, I want to pull out the value of the bean:write tag.
>
> I am using following syntax.
>
> something is probably wrong, as i am getting a compile error.
>
> looking for right syntax
>
> basically all i want to to is pull out the value of the bean:write tag.
>
>
>
> Thanks in advance.
>
>
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
RE: Bean:write
Posted by Robert Taylor <rt...@mulework.com>.
Try using the following with JSTL:
<c:set var="myValue" value="${teacher.SSN}"/>
or you can try the following using <bean:*.../>
<bean:define id="myValue" name="teacher" property="SSN"/>
If you are still getting a error make sure you are
using proper JavaBean naming conventions. You can find this in
the JavaBean specification.
robert
> -----Original Message-----
> From: as as [mailto:sam_struts@yahoo.com]
> Sent: Sunday, March 21, 2004 12:47 PM
> To: Struts Users Mailing List
> Subject: Bean:write
>
>
>
> Hi,
>
>
>
> In my logic:iterate tag, I want to pull out the value of the bean:write tag.
>
> I am using following syntax.
>
> something is probably wrong, as i am getting a compile error.
>
> looking for right syntax
>
> basically all i want to to is pull out the value of the bean:write tag.
>
>
>
> Thanks in advance.
>
> <% java.lang.String myValue = <bean:write name="teacher" property ="SSN"/>;.
>
>
>
>
>
>
> Do you Yahoo!?
> Yahoo! Finance Tax Center - File online. File on time.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org