Great idea!
I'm adding this, except I'm making it do this:
else if ( Date.class.isAssignableFrom(value.getClass())) {
result = (Date)value;
}
So it will handle any subclass of Date. I'm also adding this for List's
and Set's.
Not checked in yet, 'cause I don't have time to finish testing, but it's
looking good so far.
Jason
> -----Original Message-----
> From: Frederick N. Brier [mailto:[EMAIL PROTECTED]
> Sent: Saturday, October 18, 2003 7:37 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] Converters not used on property get?
>
>
> I just got the Jakarta JSTL to work with Webwork2/XWork, but ran into
> what I believe is a bug. 2 lines fix it, if you determine it
> is a bug.
> This may or may not be related to the email "Converters not used on
> property get?" between Fred Lamuette and Patrick Lightbody, and may
> solve Drew McAuliffe's issue.
>
> In XWorkBasicConverter, the doConvertToDate() method only
> checks to see
> whether the object being passed in is a String [if (value instanceof
> String)], otherwise it returns null. If we add the following 2 lines
> after the if the java.sql.Date object is returned which is perfectly
> acceptable for a java.util.Date:
>
> else if ( value instanceof java.sql.Date )
> result = (Date)value;
>
> Thank you.
> Fred.
>
>
>
> -------------------------------------------------------
> This SF.net email sponsored by: Enterprise Linux Forum
> Conference & Expo The Event For Linux Datacenter Solutions &
> Strategies in The Enterprise
> Linux in the Boardroom; in the Front Office; & in the Server Room
> http://www.enterpriselinuxforum.com
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>
-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork