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 RequestProcessor class > and overloading "processPopulate" method or something like that. > > But in general - I guess you should better avoid it. HTML forms are > designed for sending String values typed by user and Struts layer > (= ActionForms or Actions) should transform them into appropriate > business objects. > > If you tell us something about why you need it, it could be possible to > find out better designed (IMHO) solution. > > Pavel Kolesnikov
I am using Hibernate to retrieve information from DB (I have several implemented DAO classes). The information retrieved is stored in Java POJOs. In order to integrate with Struts I have 2 choices: 1. Implement a model structure where I save all the information needed from application. 2. Retrieve the information needed using DAO classes which will access the DB. Do you have any other suggestions. I am going to use a mix of these 2 solutions. That is, each application transaction will hold its temporary model which will be discarded after the end of the transaction in order to be used from all the action and JSP classes Everything else is kept in DB. chipix --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]