You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by vishakha sawant <vi...@gmail.com> on 2005/12/09 08:19:20 UTC

problem with bean:write

If you are using <bean:write name = "mybean" property = "key"/> then you
must define mybean using <bean:define> tag.
for e.g If you set your javabean as myBean in request and want to display
it's property key's value then just define it as
<bean:define id="bean" name="myBean "/>
and to display it use bean:write tag
<bean:write name="bean" property="key"/>

Regards,

Vishakha


---------- Forwarded message ----------
From: Comain Chen <co...@gmail.com>
To: Struts Users Mailing List <us...@struts.apache.org>
Date: Thu, 8 Dec 2005 23:55:02 +0800
Subject: A problem about bean:write
In a jsp page, when use <bean:write> there should be a bean name to be
defined,
 as <bean:write name = "mybean" property = "key"/>.
 well, here, i come across a problem:how can i define the javabean"mybean"
to let the tag know it.
Because, when i just define a class "mybean" with property key
and method getKey(),setKey(), the system tell me that he can't find the bean
with property "key".

--
Thanks for reading
comain chen