Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display full double values

 
Aravind Prasad
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers

I have a table structure and the values in the table which are in trillions. Please see the below information for your better understanding.



In the table the values are displaying properly. But when I call the Double value using query and display in the JSP Page, I get the values like for

Please advise, how can i solve this issue..

Thanks/ Regards

Aravind
 
Claudiu Chelemen
Ranch Hand
Posts: 75
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aravind,

You may format the output using jstl fmt library.
Example here, check out the number tags.

Cheers,
Claudiu
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To be more explicit, you can provide a pattern for the output using the <c:formatNumber> tag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic