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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -