struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsarris <>
Subject Re: ActionForm automatic type conversion
Date Tue, 04 Jan 2005 10:28:15 GMT
On Mon, 3 Jan 2005 17:46:46 +0100, Pavel Kolesnikov
<> wrote:
> On Mon, 3 Jan 2005 11:16:16 +0200, dsarris <> 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

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
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message