Solved

Decimal Point as a comma

Posted on 2007-03-18
5
1,801 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: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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
copyEndy  challenge 15 87
Enhanced For loop vs ForEach Loop 4 65
custom annotations 9 33
servlet example 11 19
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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 …
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.

863 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

20 Experts available now in Live!

Get 1:1 Help Now