struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arpan <arpan.deb...@gmail.com>
Subject Re: Null values for Nested object properties after Form submission.
Date Wed, 26 Nov 2014 16:26:28 GMT
Hi Lukasz,

Even after adding no-arg constructor, the properties of  nested
object(application) remains null.
But I am getting values of the properties of upper level object
'ConfigBean' properly.

Is there anything I am missing!

Thanks


On Wed, Nov 26, 2014 at 5:42 PM, Lukasz Lenart <lukaszlenart@apache.org>
wrote:

> 2014-11-26 12:36 GMT+01:00 Arpan <arpan.debroy@gmail.com>:
> > Hi,
> >
> > I have a nested bean object, whose properties I am able to load in my jsp
> > and I can see the values.
> > But after Form submission, I am getting null values of the properties of
> > the nested object in my action.
> > I am implementing ModelDriven<ConfigBean> interface.
> > ConfigBean has 'application' as its nested bean, which has 'portNumber'
> > property.
> > I am using all the getter and setter methods.
> >
> > <s:textfield name="application.portNumber" />
> >
> > Can anyone suggest anything.
>
> Missing default constructor of 'application' ?
>
>
> Regards
> --
> Ɓukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message