Solved

Decimal Point as a comma

Posted on 2007-03-18
5
1,847 Views
Last Modified: 2013-11-24
Hey experts,

  I want (using JSTL) a number to be formatted with the decimal point appearing as a comma instead of a dot; any help on how to do that??
0
Comment
Question by:mte01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 30

Expert Comment

by:Mayank S
ID: 18744521
Try to use DecimalFormat: http://www.exampledepot.com/egs/java.text/FormatNum.html

If that doesn't work, create a new string by replacing . by , in your display string using the replaceAll () method provided by String.
0
 
LVL 3

Accepted Solution

by:
mte01 earned 0 total points
ID: 18744813
>>mayankeagle

I said I want it using JSTL. Anyway, I did that by changing the locale using:

<fmt:setLocale value="fr_FR" />

Thanks anyways for your help
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18744819
Yeah you can set the locale too - didn't realize you wanted it in French.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
A solution for Fortify Path Manipulation.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question