struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Reumann <maill...@reumann.net>
Subject Re: date format problems
Date Thu, 06 Mar 2003 16:25:46 GMT
On Thu, 6 Mar 2003 16:14:26 +0100
Gemes Tibor <tib@i-trade.hu> wrote:

> 2003. március 6. 16:06 dátummal Søren Blidorf ezt írtad:
> > Hi.
> >
> > I have an action that gets a date from the MS SQL 2000 in
> > yyyy-MM-dd. I convert it with simpledateformat as dd-MM-yyyy and put
> > it in a jsp form. When submitting the form the date must be coverted
> > back to yyyy-MM-DD before another actions update the db.
> >
> > I am trying to convert the date value in the ActionForm, but I am
> > getting the following error.
> >
> > Any idears? I am lost and it is very urgent
> 
> Register a Converter for your String-Date Date-String conversion
> with ConvertUtils. read javadocs
> org.apache.commons.beanutils.ConvertUtils

Actually check the archives on "BeanUtils coverting java.util.Date." I
posted the converter you need to register in order to do the
conversion. If you can't find it in the archives let me know and I'll
look for it.



-- 
Rick Reumann

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message