Hi all,

  Well, i recommend using JSTL tag formatNumber with type='currency'.
You can do this way:

  <%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>

  <fmt:setLocale value="pt_BR"/>
  <fmt:formatNumber value="${your_property}" type="currency"/>

  It worked for me.

Regards,
 Daniel Silva


--- Tamia_Ramírez <[EMAIL PROTECTED]> wrote:
> THIS CODE BECOME A JAVA.UTIL.DATE WITH FORMAT: dd/MM/yyyy to a date MMM dd,
> yyyy:
> 
> SimpleDateFormat dateFormatter = new SimpleDateFormat("MMM dd, yyyy");
> String new_Date = dateFormatter.format(myDate);
> reservacion.setFechaSalString(new_Date);
> 
> you may need to import java.text first.
> 
> I hope it can help to you too... it works for me.
> 
> -----Original Message-----
> From: Silverio Wagner Silva(Secorp) [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 01, 2003 10:33 AM
> To: 'Struts Users Mailing List'
> Subject: RES: Date format
> 
> 
> java.util.Date
> 
> -----Mensagem original-----
> De: Tamia Ramírez [mailto:[EMAIL PROTECTED]
> Enviada em: sexta-feira, 1 de agosto de 2003 13:33
> Para: Struts Users Mailing List
> Assunto: RE: Date format
> 
> with type is your date, java.sql or java.util?
> 
> -----Original Message-----
> From: Silverio Wagner Silva(Secorp) [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 01, 2003 10:27 AM
> To: 'Struts Users Mailing List'
> Subject: Date format
> 
> 
> A beginner question:
> 
> When my date field is shown in my jsp it appears in a different way,
> although my Locale object is correctly set.
> 
> Anyone knows how to solve this problem?
> 
> Thanks.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to