-----Original Message-----
From: John Menke [mailto:[EMAIL PROTECTED]]
Sent: Friday, 22 February 2002 7:13 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] castor with struts?Just a design question: Would you put the persistence calls in the ActionForm classes?-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 8:34 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] castor with struts?Use it as you would anything else... I tend to put my persistence calls in the actions themselves, deeming it a control method (controlling the flow of data), but if the project was larger I'd write model classes to handle all of the data framework.
- Brett
-----Original Message-----
From: John Menke [mailto:[EMAIL PROTECTED]]
Sent: Friday, 22 February 2002 5:22 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] castor with struts?
Does anyone have any experience using Castor with Struts. I need a little
help getting started. If somebody has a source example it would be greatly
appreciated.-john
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
Title: RE: [castor-dev] castor with struts?
Certainly not in the ActionForm classes! They only validate and do
get/set. Don't initialise them from the database (well that's my opinion). I'd
be inclined to send to an action that explicitly fills and returns the
form.
As I
said, probably in the action if it is small enough that your actions do most of
the work, but if you have a lot of reuse, separate data handling classes could
be designed in the model.
This
is a good question for the struts list although you can probably find your
answers in the archive. They won't deirectly relate to castor, but anything
relating to where to do database access will suffice. Castor just reduces the
amount of code to do that :)
- [castor-dev] castor with struts? John Menke
- Re: [castor-dev] castor with struts? Brett Porter
- Re: [castor-dev] castor with struts? John Menke
- Re: [castor-dev] castor with struts? Brett Porter
- Re: [castor-dev] castor with struts? Christopher Sturm
- Re: [castor-dev] castor with struts? John Menke
- Re: [castor-dev] castor with struts? Christopher Sturm
