struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert Rabago <hrab...@gmail.com>
Subject Re: java.util.Date in Action Form Bean
Date Wed, 02 Nov 2005 15:57:54 GMT
[ Oh, I missed my cue! :) ]

If your form bean maps to a business object (and it sounds like it
does since you're using BeanUtils), you can try FormDef:
http://formdef.dev.java.net/

You won't need to create a separate ActionForm class or manually
define your DynaActionForm, FormDef will configure it for you.  You
can also specify how you want your fields formatted, including dates
and numbers, and use FormDef's conversion methods in place of
BeanUtils.

Hubert

On 10/31/05, Yujun Liang <yujun.liang@acm.org> wrote:
> Laurie,
>
> Thanks for all the replies.
>
> Can you point me to a document describe how to change the default converter
> used by Struts? I was not aware of that. By the way, what's the disadvantage
> to have common beanutil to support java.util.Date as well?
>
> Thanks
>
> On 10/30/05, Laurie Harper <laurie@holoweb.net> wrote:
> >
> > Right, I create a fresh instance of BeanUtilsBean and register the
> > converter at the point of use, to avoid that being a problem.
> >
> > L.

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


Mime
View raw message