• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wanted a example for displaying currency in jsp

 
abbimalla Chandra Sekhar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

chandu.
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you simply looking to format a number? If so, look at the NumberFormat class.

Example

 
Gail Schlentz
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's what works for me, with jstl...

Include at top of jsp page:



To display:


[ January 24, 2006: Message edited by: Elaine Micheals ]
 
Arvind Gudiseva
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please let me know how to format text field (html:text) to currency or 0.00 in struts.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this thread for a discussion of this problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic