• Post Reply Bookmark Topic Watch Topic
  • New Topic

Decimal number display using JSTL  RSS feed

Vijay Chandran
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,

I am exporting data to excel from a JSP. 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 <cut> 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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!