Just define the form property as a string

<form-property name="date" type="java.lang.String" />

when you get the date from you model either format it in your referring class, using DateFormat.

java.util.Date date = new java.util.Date( dateString );

now you can format and then feed it back to the form.

Cheers Mark


On Friday, October 31, 2003, at 10:09 AM, dutrieux wrote:






I declare in struts-config.xml a DynaActionForm class with a property "euroDate" of class java.sql.date.

I register on the ConvertUtils instance a new convert class for the the class "java.sql.Date" to support the european date (dd.mm.yyyy). That work very fine.

But now my problem is that I would like display in the <html:text property="euroDate"> the date : not in usa date (yyyy-mm-dd) but in euro date (dd.mm.yyyy).

Does any body know a solution.

Best regards

--




Institut Pasteur



BODY { MARGIN-TOP: 1em; FONT-SIZE: 12pt; MARGIN-LEFT: 1em; COLOR: #003399; FONT-FAMILY: "Trebuchet MS" }


<image.tiff>

<image.tiff>

<image.tiff>

<Institut Pasteur>


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



Reply via email to