This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes How to validate float numbers in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to validate float numbers in struts2" Watch "How to validate float numbers in struts2" New topic
Author

How to validate float numbers in struts2

Sathi Krishna
Ranch Hand

Joined: Oct 21, 2007
Posts: 51

How to validate float numbers in struts2 ???
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

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


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to validate float numbers in struts2
 
Similar Threads
struts2
struts2
Validation Struts2
ajax and struts2
STRUTS2