Hmm, seems like easiest way is modifying struts_form.xdt and putting a check for dates :-
 
    <XDtType:ifIsOfType value="return-type" type="java.util.Date" extent="concrete-type">
        protected String <XDtMethod:propertyName/>;
      </XDtType:ifIsOfType>
 
 
----- Original Message -----
From: Lianseng
Sent: Saturday, March 29, 2003 8:19 PM
Subject: Struts form date fields

Hi,
I'll like to represent date fields in the bean class as Strings in the Struts form field.  This is so that I can format the input for the request (which would be a String) accordingly before saving it to the date field.
 
I know marking a date field as a Struts form field would produce a corresponding date field on the form.
 
What would be the best approach to do this ?  New template ? 
 
Thanks.
 
Lianseng

Reply via email to