This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Struts and the fly likes wanted a example for displaying currency in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "wanted a example for displaying currency in jsp" Watch "wanted a example for displaying currency in jsp" New topic

wanted a example for displaying currency in jsp

abbimalla Chandra Sekhar

Joined: Jan 23, 2006
Posts: 2
i want to display currency in the jsp like - 500.00
now it is displaying like - 500
this one i want in struts.
can anyone help me?

Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

moving this to the struts forum, seeing as though you're interested in how to do this in Struts. Please post your replies there. Thanks!
Rashid Mayes
Ranch Hand

Joined: Jan 11, 2006
Posts: 160
Are you simply looking to format a number? If so, look at the NumberFormat class.


Rashid Mayes -
Gail Mikels
Ranch Hand

Joined: May 07, 2001
Posts: 634
Here's what works for me, with jstl...

Include at top of jsp page:

To display:

[ January 24, 2006: Message edited by: Elaine Micheals ]

Gail Mikels
Arvind Gudiseva

Joined: Jan 25, 2006
Posts: 2
Please let me know how to format text field (html:text) to currency or 0.00 in struts.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
See this thread for a discussion of this problem.

Consultant, Sima Solutions
rocket mass heater kickstarter
subject: wanted a example for displaying currency in jsp