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

struts2 scientific notation display

 
luke yu
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<s:textfield name="assets.unitPrice" maxlength="20" theme="simple" />
it's fine to input 999999999 and it is stored as 999999999.0000 in sql server 2005(i used "money" type) ,but it is displayed in scientific notation formation when i view this field in page. How can i stop this auto convert? i define unitPrice as Double in model.
 
André-John Mas
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One approach could simply be to add a getter an setter to your action, which would use a string type. You can then handle the formatting yourself. Something like:

[ November 27, 2008: Message edited by: Andr�-John Mas ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic