Re: [S2] s:text help on formatting output

2007-04-11 Thread Dave Newton
--- Harring Figueiredo <[EMAIL PROTECTED]> wrote:
> It would be nice if the documentation was as CLEAR
> as your email. (i.e. where to the format.money, 
> rather then
> 
> where:  format.money={0,number,currency}.

I update the  docs to (hopefully!) better
reflect this.

Really, the documentation is fairly clear about what
's "name" attribute is: "Name of resource
property to fetch" but I can sort of see what you
mean.

Sometimes a bunch of values in brackets are just a
bunch of values in brackets ;)

d.



  Don't be flakey.  Get Yahoo! Mail for Mobile and always stay connected to 
friends.http://mobile.yahoo.com/mail

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



Re: [S2] s:text help on formatting output

2007-04-11 Thread Harring Figueiredo

DAVE!

THANK YOU SO MUCH FOR THIS  "LITTLE" DETAIL.

It would be nice if the documentation was as CLEAR as your email. (i.e.
where to the format.money, rather then

where:  format.money={0,number,currency}.

To me, coming from Unix world, means a set in which the possible values are
inside the brackets.

Thank you ALL again for your patience, replies, and help!

hf

On 4/11/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Harring Figueiredo <[EMAIL PROTECTED]> wrote:
> [...]

Dude, just type it in.

In my properties file:

format.money={0,number,currency}

On my JSP:


  


Rendered output:

$123.00

Switch locale to Chinese (zh_CN, it's the only other
language I know, sorry), rendered output:

¥123.00

I simply don't know what else to tell you.

Wait, that isn't the right symbol. But you get the
point... ar_SA renders as:

ر.س. 123

d.






Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

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





--
Sincerely,

Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600

"We never become truly spiritual by sitting down and wishing to become so.
You must undertake something so great that you cannot accomplish it
unaided."


Re: [S2] s:text help on formatting output

2007-04-11 Thread Dave Newton
--- Harring Figueiredo <[EMAIL PROTECTED]> wrote:
> [...]

Dude, just type it in.

In my properties file:

format.money={0,number,currency}

On my JSP:


  


Rendered output:

$123.00

Switch locale to Chinese (zh_CN, it's the only other
language I know, sorry), rendered output:

¥123.00

I simply don't know what else to tell you.

Wait, that isn't the right symbol. But you get the
point... ar_SA renders as:

ر.س.‏ 123

d.



   

Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

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



Re: [S2] s:text help on formatting output

2007-04-11 Thread Harring Figueiredo

Another thing is that your example, according to the example provided on the
web site, is not correct either.

 



format.money should actually be one of the values { 0, number, currency },
at least that is what it says on the documentation page.

I wish someone from the Struts team would give a better example on this.

Thank you to all that have replied and will still reply.   Solution NOT yet
found.

Harring


On 4/11/07, Harring Figueiredo <[EMAIL PROTECTED]> wrote:



Hi Laurie,

Thanks for the response. I tried what you suggested, and actually did not
get  a value back (empty). Where should I  set the resource string? (I
thought it was _smart_ enough to get from the Locale.

Thank you.

On 4/11/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
>
> Harring Figueiredo wrote:
> > Folks:
> >
> > It is clear that I MUST be doing something wrong, but I have tried all
> the
> > options with the  to format a number.
> >
> > Here is what I have tried:
> >  > value="%{#session.Account.balance}"/>
> >  > value="%{#session.Account.balance}"/>
> > 
> > 
> > 
> > 
> >  .1
> > 
> > 
> >  .1 
> > 
> > 
> >
> >
> > And Here is the Corresponding output on the page:
> > currency
> > format.money
> > currency
> > format.money
> > currency
> > currency
> > currency
> > currency
> > 1003.9
> >
> > What in the world ami I missing?  ( I am wither misreading the
> example, or
> > it is clearly not correct. I hope it is the former)
> >
> > I followed the example on this page:
> > http://struts.apache.org/2.x/docs/text.html
> >
> > Other example
> >
> >  > value="myMoneyValue"/>
> >
> > where
> >
> > format.money={0,number,currency}
> >
> >
> > Thank you in advance for any input.
> >
> > hf
> >
>
> None of your attempts actually follows the example, though; you're using
> 
> Try this:
>
>  
>value="%{#session.Account.balance}"/>
>  
>
> From your sample output it looks like you haven't set up the
> format.money or currency resource strings, either, which you will need
> to do.
>
> L.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Sincerely,

Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600

"We never become truly spiritual by sitting down and wishing to become so.
You must undertake something so great that you cannot accomplish it
unaided."





--
Sincerely,

Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600

"We never become truly spiritual by sitting down and wishing to become so.
You must undertake something so great that you cannot accomplish it
unaided."


Re: [S2] s:text help on formatting output

2007-04-11 Thread Harring Figueiredo

Hi Laurie,

Thanks for the response. I tried what you suggested, and actually did not
get  a value back (empty). Where should I  set the resource string? (I
thought it was _smart_ enough to get from the Locale.

Thank you.

On 4/11/07, Laurie Harper <[EMAIL PROTECTED]> wrote:


Harring Figueiredo wrote:
> Folks:
>
> It is clear that I MUST be doing something wrong, but I have tried all
the
> options with the  to format a number.
>
> Here is what I have tried:
>  value="%{#session.Account.balance}"/>
>  value="%{#session.Account.balance}"/>
> 
> 
> 
> 
>  .1
> 
> 
>  .1 
> 
> 
>
>
> And Here is the Corresponding output on the page:
> currency
> format.money
> currency
> format.money
> currency
> currency
> currency
> currency
> 1003.9
>
> What in the world ami I missing?  ( I am wither misreading the example,
or
> it is clearly not correct. I hope it is the former)
>
> I followed the example on this page:
> http://struts.apache.org/2.x/docs/text.html
>
> Other example
>
>  value="myMoneyValue"/>
>
> where
>
> format.money={0,number,currency}
>
>
> Thank you in advance for any input.
>
> hf
>

None of your attempts actually follows the example, though; you're using

 
 

From your sample output it looks like you haven't set up the
format.money or currency resource strings, either, which you will need
to do.

L.


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





--
Sincerely,

Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600

"We never become truly spiritual by sitting down and wishing to become so.
You must undertake something so great that you cannot accomplish it
unaided."


Re: [S2] s:text help on formatting output

2007-04-11 Thread Laurie Harper

Harring Figueiredo wrote:

Folks:

It is clear that I MUST be doing something wrong, but I have tried all the
options with the  to format a number.

Here is what I have tried:






 .1 



 .1 




And Here is the Corresponding output on the page:
currency
format.money
currency
format.money
currency
currency
currency
currency
1003.9

What in the world ami I missing?  ( I am wither misreading the example, or
it is clearly not correct. I hope it is the former)

I followed the example on this page:
http://struts.apache.org/2.x/docs/text.html

Other example



where

format.money={0,number,currency}


Thank you in advance for any input.

hf



None of your attempts actually follows the example, though; you're using 


Try this:





From your sample output it looks like you haven't set up the 
format.money or currency resource strings, either, which you will need 
to do.


L.


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



[S2] s:text help on formatting output

2007-04-11 Thread Harring Figueiredo

Folks:

It is clear that I MUST be doing something wrong, but I have tried all the
options with the  to format a number.

Here is what I have tried:






 .1 

 .1 




And Here is the Corresponding output on the page:
currency
format.money
currency
format.money
currency
currency
currency
currency
1003.9

What in the world ami I missing?  ( I am wither misreading the example, or
it is clearly not correct. I hope it is the former)

I followed the example on this page:
http://struts.apache.org/2.x/docs/text.html

Other example



where

format.money={0,number,currency}


Thank you in advance for any input.

hf