You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Comain Chen <co...@gmail.com> on 2005/12/08 16:55:02 UTC

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

Re: A problem about bean:write

Posted by Martin Gainty <mg...@hotmail.com>.
all explained here
http://struts.apache.org/struts-doc-1.2.7/userGuide/struts-bean.html#write
Good Luck,
M-
----- Original Message ----- 
From: "Comain Chen" <co...@gmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Thursday, December 08, 2005 10:55 AM
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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org