> -----Original Message----- > From: Craig McClanahan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 24, 2004 10:20 AM > To: Struts Users Mailing List > Subject: Re: I suspect this is a bad idea...so what's a better one? > > > On Tue, 24 Aug 2004 13:10:50 -0400, Joe Hertz > <[EMAIL PROTECTED]> wrote: > > > It seems like you're over engineering something that is > > > simple... what problem are you trying to solve with this? > > > > I want to be able to do alot of the mundane setup stuff > that happens in > > every action method without having to think aboout it. > > > > Rather than having every method create and destroy a > Persistence object, I'd > > have an execute() method that created it, called super.execute() and > > destroyed it. > > > > Sounds like you really want a Filter that creates the persistence > object on the way in (storing it in a request attribute, so that it's > accessible in the Action.execute() method), and cleaning up on the way > out. >
Now, I hadn't thought of that.. Would you store it in session? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]