This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2 Model driven negative integer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 Model driven negative integer" Watch "Struts 2 Model driven negative integer" New topic
Author

Struts 2 Model driven negative integer

Arvind Subramanian
Ranch Hand

Joined: Jul 25, 2008
Posts: 84

How to assign a negative number (-123 or -123.00) to a ModelDriven bean (implements ModelDriven< Bean >). When i try passing the value through request for that action it throws below exception



variable in modeldriven bean is declare as Float


"Many of lifes failure are people who did not realize how close they were to success when they gave up."
-Thomas Edison
~ar~stutzen~
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts 2 Model driven negative integer
 
It's not a secret anymore!