2017-10-03 18:56 GMT+02:00 sreekanth <sreekanth.n...@egovernments.org>: > Hi, > We have a List object which is getting set at JSP (element added > dynamically in front end), while saving this form the object's value for > BigDecimal fields are getting null. > > eg: > > Class A { > String strVal; > BigDecimal drAmt; > BigDecimal crAmt; > } > > in jsp > <input type="hidden" name='myList[0].strVal'/> > <input type="hidden" name='myList[0].drAmt'/> > <input type="hidden" name='myList[0].crAmt'/> > > > while we submit the form *strVal* is getting binded properly but both *drAmt > and crAmt* not getting set.
As from Struts version 2.3.12, the built-in converter is Locale aware which means it will convert String to BigDecimal according to user locale. Regards -- Ćukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org