Well, the app has grown for quite some time now and consists of a lot of
actions. Touching all of the them and exchanging all number-setters with
some kind of string parsing would be a whole lot of work.
So my favourite solution would be something that easily achieved by struts
default functionality. After all, this problem doesn't seem too exotic :)


-----Ursprüngliche Nachricht-----
Von: Ing. Andrea Vettori [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Juli 2007 18:47
An: Struts Users Mailing List
Betreff: Re: Struts 2 requires input result on failed type conversion

it's not what you want but why don't use String getter/setter on the  
action and do the conversion later ?

Il giorno 11/lug/07, alle ore 18:37, Martin Simons ha scritto:

> Hi everybody, this is my first mailing list :-)
>
> I'm currently developing a web-app based on Struts 2. My visitors  
> are mainly
> German and whenever they enter numbers, they usually type a decimal  
> number
> like 1,23 instead of 1.23. If the setter of the action requires a  
> double,
> type conversion will fail and ask for an "input" result. For historic
> reasons this doesn't exist in my application. Input errors are handled
> separately and if type conversion fails, null or 0 is expected. How  
> can I
> get Struts to use this behaviour, or even better, cast a comma- 
> separated
> decimal to a double correctly.
>
> Thanks for your help,
> Martin
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

--
Ing. Andrea Vettori
Consulente per l'Information Technology



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to