Solved

Decimal Point as a comma

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Spring Controller - inheritance in request parameter 3 75
maven java path setting 5 64
servlet doXXX methods 3 80
tomcat not starting 6 83
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 …
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…
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.

740 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