jsp - Adding A Euro Symbol to Amount field in JSTL -


I have the following code that shows the amount field. I want to add a Euro symbol before the zodiac field is displayed. Is it possible to do this without changing the formatting?

  & lt; Div & gt; & Lt; Duration class = "zodiac" & gt; & Lt; / Span & gt; & Lt; Fmt: formatNumber type = "number" minFractionDigits = "2" maxFractionDigits = "2" value = "$ {pay.Amount}" var = "fmtAmount" /> & Lt; C: out value = "$ {fmtAmount}" /> & Lt; / Div & gt;    

Currency characters are part of the Unicode character set, so you have to declare that your Head of documents:

  & lt; Meta http-equiv = "content-type" content = "text / html; charset = utf-8" />   

Add the format below to your value so you can show the value of your money as the Euro.

  Friendly code: & Euro; Numerical code: & amp; # 128; Hex code: & amp; # X80;   

Hope it helps.

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -