Re: [Struts 2] Formatting double

2008-06-04 Thread Felipe Lorenz
Im sorry!!!

On Wed, Jun 4, 2008 at 6:46 PM, Roger Varley <[EMAIL PROTECTED]>
wrote:

> On Wednesday 04 June 2008 22:49:15 Felipe Lorenz wrote:
> > Are you brazilian to use a comma for decimal separator?
> >
>
> You might be surprised at the number of countries that use a comma as the
> decimal separaor as opposed to the dot.
> http://en.wikipedia.org/wiki/Decimal_point
>
> Regards
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [Struts 2] Formatting double

2008-06-04 Thread Roger Varley
On Wednesday 04 June 2008 22:49:15 Felipe Lorenz wrote:
> Are you brazilian to use a comma for decimal separator?
>

You might be surprised at the number of countries that use a comma as the 
decimal separaor as opposed to the dot. 
http://en.wikipedia.org/wiki/Decimal_point

Regards

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



Re: [Struts 2] Formatting double

2008-06-04 Thread Felipe Lorenz
Are you brazilian to use a comma for decimal separator?

whatever, if your system work only with that format(000.000,00) you can
create a String field in Action class, and do the parse from string to
double manually.

On Wed, Jun 4, 2008 at 2:14 PM, Dave Newton <[EMAIL PROTECTED]> wrote:

> It's standard Java I18N formatting, IIRC.
>
> Maybe try some Java docs, [1] might help.
>
> Dave
>
> [1] http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html
>
> --- On Wed, 6/4/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>
> > From: Milan Milanovic <[EMAIL PROTECTED]>
> > Subject: Re: [Struts 2] Formatting double
> > To: "Struts Users Mailing List" 
> > Date: Wednesday, June 4, 2008, 12:06 PM
> > I found how to do it in this page:
> > http://www.roseindia.net/struts/struts2/struts-2-format.shtml
> >
> > But I'm not sure how can I format number e.g., like
> > this: 000.000.000,00 kg
> >
> > ?
> >
> > These patterns are not clear to me.
> >
> > --
> > Thx, Milan
> >
> > Milan Milanovic <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I have a double value that should be formated in following
> > format: 000.000,00. I just need to show this value in the
> > jsp page with . How can I do this ?
> >
> > --
> > Thx in advance, Milan Milanovic
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [Struts 2] Formatting double

2008-06-04 Thread Dave Newton
It's standard Java I18N formatting, IIRC.

Maybe try some Java docs, [1] might help.

Dave

[1] http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html

--- On Wed, 6/4/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:

> From: Milan Milanovic <[EMAIL PROTECTED]>
> Subject: Re: [Struts 2] Formatting double
> To: "Struts Users Mailing List" 
> Date: Wednesday, June 4, 2008, 12:06 PM
> I found how to do it in this page:
> http://www.roseindia.net/struts/struts2/struts-2-format.shtml
> 
> But I'm not sure how can I format number e.g., like
> this: 000.000.000,00 kg
> 
> ?
> 
> These patterns are not clear to me.
> 
> --
> Thx, Milan
> 
> Milan Milanovic <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I have a double value that should be formated in following
> format: 000.000,00. I just need to show this value in the
> jsp page with . How can I do this ?
> 
> --
> Thx in advance, Milan Milanovic

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



Re: [Struts 2] Formatting double

2008-06-04 Thread Milan Milanovic
I found how to do it in this page: 
http://www.roseindia.net/struts/struts2/struts-2-format.shtml

But I'm not sure how can I format number e.g., like this: 000.000.000,00 kg

?

These patterns are not clear to me.

--
Thx, Milan

Milan Milanovic <[EMAIL PROTECTED]> wrote: Hi,

I have a double value that should be formated in following format: 000.000,00. 
I just need to show this value in the jsp page with . How can I do this ?

--
Thx in advance, Milan Milanovic