Register / Login
Decimal number display using JSTL
posted 8 years ago
I am exporting data to excel from a
. There are some decimal values displayed in the JSP which when exported and opened in excel, is displayed as an integer value.
For example, i have a column units which will have values like 0.00,1.23,7.09,6.54... This, when i export to excel and open,it is displayed as 0,1,7,6...
I am using <c
ut> tag for displaying the values.
Is there any tag in JSTL for displaying the decimal number as it is, without being automatically converted to integer?
Kindly provide your help.
How to retain decimal precisions after converting from String to double
How to Export web page(jsp page) to excel using jsp or servlets
Displaying database results with JSTL (was 'Struts')
How to Trim Numbers if No Decimal Values