Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't enter 0 in textfield for Float  RSS feed

 
chris gar
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following field in a jsp


I have the field defined in an action with getters and setters (not shown)


I can successfully enter any number. I can also enter nothing (leaving the field blank) - and it works fine . Why can't I just enter 0 or 0.0 ?

Suggestions?

Thanks in advance.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What version? I vaguely remember a bug about this.
 
chris gar
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts 2.1.6.

I believe this is the current version.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!