• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring-mvc

 
sivaram krishna
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can any body explain the logic to following scnnario


If you enter a letter into an amount field, accidentally or intentionally, when you leave the field the letter will be replaced by 0.00. If not removed this will be what you submit.

The amount field can be found throughout the site on the transaction screen, reports and search screens.

please help me..!
 
Nam Ha Minh
Ranch Hand
Posts: 504
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you map the field with a float/double field of a bean in Spring? That's possible a reason which Spring automatically converts form field's value to decimal value.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic