File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Display full double values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Display full double values" Watch "Display full double values" New topic
Author

Display full double values

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
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

Joined: Mar 25, 2011
Posts: 71

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

Joined: Jan 10, 2002
Posts: 61413
    
  67

To be more explicit, you can provide a pattern for the output using the <c:formatNumber> tag.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display full double values