Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

bean population problem in struts

andyandy

2008-11-23

Replies: Find Java Web Hosting

Author LoginPost Reply

Hello. I have a problem and have been trying to figure out for several days
now.

I have the following bean structure
Customer
 Address
 CreditCard
The problem is when the same page must be displayed again with the old data,
due to validation errors from the user. The values of the properties of the
Customer bean are repopulated correctly. The problem comes with the Address
and CreditCard beans, which properties values are initialized for no
apparent reason. These objects do not have null values. Instead
com.myApp.home.beans.AddressBean@(protected)
But if I try to get the address.getStreetName(), the value is blank, though
a value was introduced.

I store and retrieve my form bean from the session scope. And the struts
automatic validation is set to false in the struts-config.xml, as I’m doing
it manually.

Can somebody help me telling me what I’m doing wrong? Thanks a lot in
advance!
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.