Hi Firat, I have one doubt regarding the same question.
I have a property dateOfBirth of String type. What type of values I can set to this property, if I used formatKey value. If I given some entires like 31/12/02, it throws an Exception or it behaviour in another manner. My requirement is I have date field, If user enters 10022003, it should convert into 10/02/2003. If I given wrong it should promt to user wrong format. Thanks & Regards, Ashok.D ----- Original Message ----- From: "Firat TIRYAKI" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, September 10, 2003 1:30 PM Subject: Re: help....! it's possible to format date output with bean:write? > You should make a decleration in the application resources file ; > ----------------------------------- > date.format=MM/dd/yyyy > ----------------------------------- > and use it in jsp bean:write with the parameter "formatKey" like below > > <bean:write name="beanName" property="dateProperty" formatKey="date.format" > filter="true" /> > > F. > > > ----- Original Message ----- > From: "hari_s" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, September 10, 2003 10:49 AM > Subject: help....! it's possible to format date output with bean:write? > > > > it's possible to format date output with bean:write? > > Any idea about that ?,it's possible ? > > > > > --------------------------------------------------------------------- > 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]

