RE: ActionForm automatic type conversion

2005-01-05 Thread Joe Germuska
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

RE: ActionForm automatic type conversion

2005-01-05 Thread Bala . Paranj
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

Re: ActionForm automatic type conversion

2005-01-04 Thread Pavel Kolesnikov
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: > > >

Re: ActionForm automatic type conversion

2005-01-04 Thread dsarris
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

Re: ActionForm automatic type conversion

2005-01-03 Thread Pavel Kolesnikov
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