Population of an ActionForm is done using Commons BeanUtils, which
has a method for registering converter classes which convert strings
to objects and back.
http://jakarta.apache.org/commons/beanutils/api/index.html
Specifically, the work is done by
o.a.struts.util.RequestUtils.populate(...), w
ActionForm attributes are defined as Strings. In your case, a good solution
would be to define an adapter class that will do the conversion from String
to the appropriate type. Your business objects will use the converted data
types to execute the business logic. This approach is discussed in detai
On Mon, 3 Jan 2005 11:16:16 +0200, dsarris <[EMAIL PROTECTED]> wrote:
> Hi all and happy new year,
>
> I am trying to fill an ActionForm with values that are neither Strings
> or primitives. The specified values are selected using the
> tag. This a sample of my JSP code:
>
>
>
On Mon, 3 Jan 2005 17:46:46 +0100, Pavel Kolesnikov
<[EMAIL PROTECTED]> wrote:
> On Mon, 3 Jan 2005 11:16:16 +0200, dsarris <[EMAIL PROTECTED]> wrote:
>
> > I am trying to fill an ActionForm with values that are neither Strings
> > or primitives.
>
> I think you can do it by extending the Request
On Mon, 3 Jan 2005 11:16:16 +0200, dsarris <[EMAIL PROTECTED]> wrote:
> I am trying to fill an ActionForm with values that are neither Strings
> or primitives.
I think you can do it by extending the RequestProcessor class
and overloading "processPopulate" method or something like that.
But in ge
5 matches
Mail list logo