Has anyone fixed this issue, or got an "easy" working implementation.
I've read
http://www.nabble.com/Struts-2-requires-input-result-on-failed-type-conversion-td11543906.html#a11543906
which seems to be ended rather abruptly when Martin did not get an answer.
--
View this message in context:
ht
Thanks :)
I'll give it a crack. Started looking at the BigDecimal validator -
org.apache.commons.validator.routines.BigDecimalValidator
Rgds
Ned
Jeromy Evans - Blue Sky Minds wrote:
>
> This should give you an idea. It's modified from existing code so I
> haven't tested it.
> I've decided
Thanks for the reply.
I was hoping for some code.
It's obviously been fixed before somewhere, so why do we need to all
implement it again on a per case basis.
I'll go hack something together - if its worthy i'll contrib back here.
I'm a bit sick of struts and its "quirks" tbh.
Jeromy Evans -
I've implemented this now... but its not working correctly. I'm using Struts
2.0.9 (am aware of the new versions).
I have an AmountDTO which has a CurrencyCode (String), and a BigDecimal.
I have created an xwork-conversion.properties in the root of the classpath
which has the following line in
It needs to be big decimal as I use other numbers that have no currency
information associated.
I've fixed it - I was not coverting Number to BigDecimal explicitly at the
end of the method, so somewhere in the middle of the OgnlRuntime class it
was swallowing up the illegal args or invalid param
5 matches
Mail list logo