FAQ
I have a float field on my form. When I type 1.1 (point as floating point
symbol) it shows conversion error
java.lang.NoSuchMethodException: setPrice([Ljava.lang.String;)
But I do have a method
public void setPrice(Float price) {
this.price = price;
}
If I type 1,1 (comma as floating point symbol) everything goes well but if
there were errors on the form, on the redisplayed form I see 1.1

Why Struts requires comma for conversion but uses point for displaying ?

--
View this message in context: http://www.nabble.com/Float-conversion%3A-requires-comma-as-floating-point-symbol.-tp22833107p22833107.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriesstruts
postedApr 1, '09 at 6:54p
activeApr 1, '09 at 6:54p
posts1
users1
websitestruts.apache.org
irc#struts

1 user in discussion

Boraldo: 1 post

People

Translate

site design / logo © 2022 Grokbase