Solved

Decimal Point as a comma

Posted on 2007-03-18
5
1,791 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
  • 2
5 Comments
 
LVL 30

Expert Comment

by:mayankeagle
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:mayankeagle
ID: 18744819
Yeah you can set the locale too - didn't realize you wanted it in French.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
java update needs to be set up as msi 1 47
commonTwo  challenge 63 101
countAbc challenge 9 50
github account with ecipse 1 20
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now