struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Eapen <>
Subject Struts 2 -Big Decimal auto conversion issue
Date Sun, 06 May 2012 13:53:03 GMT
Dear All,

Big Decimal auto conversion fails when an empty string is received.Excerpt
of the stack given below.

/-- Encapsulated exception ------------\
at ognl.OgnlRuntime.callAppropriateMethod(
 at ognl.OgnlRuntime.setMethodValue(

When an empty string is received from the client it searches for a method
with argument String instead of Big Decimal.But works perfectly fine if the
value is not empty.If Big Decimal data type is changed to Integer then
there is no issue even if the value is empty string.Could you please let me
know why this happens or am i missing something.Thank you

George Eapen

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