A problem about bean:write

2005-12-08 Thread Comain Chen
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 javabeanmybean
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

2005-12-08 Thread Martin Gainty

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 [EMAIL PROTECTED]

To: Struts Users Mailing List user@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 javabeanmybean
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem with bean:write

2005-12-08 Thread vishakha sawant
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 [EMAIL PROTECTED]
To: Struts Users Mailing List user@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 javabeanmybean
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