> The bug poster didn't say the form property wasn't a String, 
> even if it was a String, doesn't ConvertUtils use NumberFormat 
> to convert the String to a Number?

No, from WriteTag.java:338
...
...
        // Return String object as is.
        if ( value instanceof java.lang.String ) {
                return (String)value;
        } else {
...
...

Also, something else I forgot to mention....the example I use has
convertNull set to true so if you remove that, you'll be seeing '$0' for
any submitted '$300' anyway.



--
James Mitchell
Software Engineer/Struts Evangelist




> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 25, 2003 4:56 PM
> To: [EMAIL PROTECTED]
> Subject: DO NOT REPLY [Bug 17391] - HTML text tag needs to 
> format its content like Bean write
> 
> 
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17391>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
> INSERTED IN THE BUG DATABASE.
> 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17391

HTML text tag needs to format its content like Bean write





------- Additional Comments From [EMAIL PROTECTED]  2003-02-25
21:55 -------
The bug poster didn't say the form property wasn't a String, even if it
was a 
String, doesn't ConvertUtils use NumberFormat to convert the String to a

Number? That would handle commas and dollar signs. I know I have used
Struts 
forms in the past that allowed the user to enter commas in form fields.
I just 
did the formatting in the bean and used NumberFormat myself to convert
the 
String to Number in the validate function. 

Having the format attribute in the tag would be convenient but it's not 
critical.

---------------------------------------------------------------------
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