This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to validate float numbers in struts2

 
Sathi Krishna
Ranch Hand
Posts: 51
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to validate float numbers in struts2 ???
 
Ankit Garg
Sheriff
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should use the double validator. If you can change your field to double then its ok, otherwise specify a max and min value for the validator so that the value is not out of bounds for your float field...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic