You should name the fields in a way that allows Struts (BeanUtils,
actually) to get to the correct property, such as "address.street".
Also, make sure your accessor for the nested bean always returns a
non-null bean, or else you'll get an NPE when the form is submitted.
Hubert
On 1/31/06, Sony T
Why would you need to do this?
Seems like a strange design to me.
Shawn
-Original Message-
From: Sony Thomas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 9:42 AM
To: user@struts.apache.org
Subject: Need some advice
Hi Friends,
I have an ActionForm and this ActionForm
Hi Friends,
I have an ActionForm and this ActionForm contains another ActionForm
nested in it. Is there is any way to set values to my nested ActionForm
when I submit from the JSP. Please give me some suggestions.
Thanks in advance
Sony Thomas
--
3 matches
Mail list logo