[Opensource] ActionForm in Controllers

Roberto roberto at hess.com.br
Fri Mar 14 05:46:19 PST 2003


Em Qui, 2003-03-13 às 15:47, javamail at ubbi.com.br escreveu:
> Hello,
> 
> Can I access ActionForm beans from a Controller?
Yes. You define an ActionForm in the config file for your app under the
<form-bean> tag. The 'name' of the form bean is the name used in the
<action> definition. You'll probably want to give session scope too.
Inside your controller you can use findControllerForm() and you're done.

> If so, is there a way to automatically setup DBObject's fields with the values of the ActionForm?
Hmm, don't know about this. Anyone??

regards,
Roberto




More information about the Opensource mailing list