File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Display full double values

Aravind Prasad
Ranch Hand

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

Claudiu Chelemen
Ranch Hand

Joined: Mar 25, 2011
Posts: 74

Hi Aravind,

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

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

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

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Display full double values
It's not a secret anymore!