Formatting a value (jsp - to thousands)



In my jsp form I want to format a variable from something like
235522455 to 235,522,455

I am trying to format it with DecimalFormat as follows:
DecimalFormat dfThou = new DecimalFormat("###,###");
<td class="info"><bean:write name="infoForm" property="<=%
dfThou.format(infoValue(pop).value) %>"/></td>
which obviously does not work.

Here is the line prior to my formatting attempt:
<td class="info"><bean:write name="infoForm"
property="infoValue(pop).value"/></td>

Can anyone help with the syntax?

Thanks!
Kay

.



Relevant Pages

  • Re: How to get the simplest NumberFormats
    ... How can I get rid of the Locale formatting and get back a simple number format. ... I can't apply a pattern if I don't know if it is a DecimalFormat. ... but what do you do if "f" is not an instanceOf DecimalFormat? ...
    (comp.lang.java.programmer)
  • Re: Formatting a value (jsp - to thousands)
    ... I am trying to format it with DecimalFormat as follows: ... It is a part of JSTL. ... You can play around with other options this library provides. ...
    (comp.lang.java.programmer)
  • Re: editor for direct editing of the syntax tree: possible?
    ... but the raw structure of lisp sources are BINARY ... So you need to have an idea of the abstract syntax, ... how to indent the source. ... since the user must format the text like in any other emacs. ...
    (comp.lang.lisp)
  • Re: Sane Syntax
    ... format documents into latex. ... better syntax checking and ease of computer parsing. ... The problem is actually not that XML itself is hard to write, but that current XML editors don't tackle this problem yet. ... If you come up with one, please consider presenting it at next year's Balisage (Montreal -- the successor to Extreme Markup) where there are *lots* of people interested in this kind of thing. ...
    (comp.text.tex)
  • Re: Using excel through vbscript
    ... > Set wkbk = oxl.activeworkbook ... >> format the text file into different col. ... >> If I open file the way you told me It simply opens the text file but it does ... >>> The correct syntax would be ...
    (microsoft.public.excel.programming)