On 10/3/2017 8:26 PM, sreekanth wrote: > 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.
Do they not being setted at all or they being setted but with a rounded value? If not setted at all, I recommend setting devmode to true and configuring log4j2 level to WARN and then examining the output for any related WARN. If you have problem with rounded values posted back, then I think you can `setMaximumFractionDigits` to a larger number in current locale. > > When i revert the upgrade back to 2.5.10.1 then it started working. > > > > -- > Sent from: http://struts.1045723.n5.nabble.com/Struts-User-f3426046.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org >