Link to home
Start Free TrialLog in
Avatar of MFCAnswer
MFCAnswer

asked on

Number format is JSP when using JSTL <sql:query> along with <c:forEach> tag. Simple beginners question !!

Hello I am using <sql:query> along with <c:forEach> tag to display contents of a database table. It works fine.
But now i want to format the numeric values returned from the Select statement.


for example. In the code below the col1 values returned from sql are numeric without any 1000 separator commas. Eg 1000, 10000, 1000000 etc.

I want to format them to display 1000 separator commans i.e 1,000, 10,000, 1000,000 etc. How can I do it ?

<sql:query> ...</sql:query>
<TABLE>
<c:forEach>
  <tr>
     <td><c:out value="${row.col1}" /></td>
   </tr>

</c:forEach>
</TABLE>
ASKER CERTIFIED SOLUTION
Avatar of evnafets
evnafets

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial