Re: Commons Chain Cookbook: Why have Struts Actions?

2004-12-18 Thread Craig McClanahan
On Fri, 17 Dec 2004 10:58:44 -, Pilgrim, Peter <[EMAIL PROTECTED]> wrote: > [snip] > Can a ``Context'' ever be too big? I mean, everytime a > web user hits a submit then a naive implementation would > create a big context object with a request, response, > errors, etc. What if an naive Struts 1

RE: Commons Chain Cookbook: Why have Struts Actions?

2004-12-17 Thread Alan Mehio
Very nice example and analysis from Peter Pilgrim > -Original Message- > From: Pilgrim, Peter [mailto:[EMAIL PROTECTED] > Sent: 17 December 2004 10:59 > To: 'Struts Developers List' > Subject: RE: Commons Chain Cookbook: Why have Struts Actions? > >

Re: Commons Chain Cookbook: Why have Struts Actions?

2004-12-17 Thread Dakota Jack
I would be very interested in this. Jack On Fri, 17 Dec 2004 08:53:32 -0500, Ted Husted <[EMAIL PROTECTED]> wrote: > On Thu, 16 Dec 2004 11:04:05 -0700, BaTien Duong wrote: > > This is great Ted. What it means is that each individual backend > > software component catalog can determine finer g

Re: Commons Chain Cookbook: Why have Struts Actions?

2004-12-17 Thread Ted Husted
On Thu, 16 Dec 2004 11:04:05 -0700, BaTien Duong wrote: > This is great Ted. What it means is that each individual backend > software component catalog can determine finer grain of > authorization and the amount of supplied information. The web layer > will take care of the first pass and assemble

RE: Commons Chain Cookbook: Why have Struts Actions?

2004-12-17 Thread Ted Husted
>From my viewpoint, it's important to distinguish between the StrutsContext and >the application's context. Right now, the Commons Chain package implies a different approach, where a WebContext might be passed up to the application layer under the Context interface. In my own work, I like to al

Re: Commons Chain Cookbook: Why have Struts Actions?

2004-12-17 Thread Dakota Jack
+1 On Fri, 17 Dec 2004 10:58:44 -, Pilgrim, Peter <[EMAIL PROTECTED]> wrote: > > So I'd agree with this `bigger' all-seeing-context design > in principle. I'd factor out some interfaces for Struts > web environment so that people in theory could re-sig > the implementation. Jack -- "You

RE: Commons Chain Cookbook: Why have Struts Actions?

2004-12-17 Thread Pilgrim, Peter
> -Original Message- > From: BaTien Duong [mailto:[EMAIL PROTECTED] ==== > > > Ted Husted wrote: > > >On Wed, 15 Dec 2004 17:22:15 +, Pilgrim, Peter wrote: > > > > > >> I was thinking in truth, only providing access to the ``catalog'' > >> and ``command'' not necessarily chan

Re: Commons Chain Cookbook: Why have Struts Actions?

2004-12-16 Thread BaTien Duong
Ted Husted wrote: On Wed, 15 Dec 2004 17:22:15 +, Pilgrim, Peter wrote: I was thinking in truth, only providing access to the ``catalog'' and ``command'' not necessarily changing the execution model. But if that is the case, could a Struts ``Action'' as it appears in 1.2.6 actually be a comm

Re: Commons Chain Cookbook: Why have Struts Actions?

2004-12-15 Thread Vic
Joe Germuska wrote: Actually, this solves the 'chaining action' conundrum, because your command can actually point to a chain, where you compose a series of logical steps which execute, but which do not each require an additional pass through the rest of the RequestProcessor chain. Or just have

RE: Commons Chain Cookbook: Why have Struts Actions?

2004-12-15 Thread Joe Germuska
Yes I also thought of this idea of a map of custom properties. Yeah, as I had mentioned in earlier discussion, it's been a pet feature request from someone on my team, and it makes possible the ChainAction when you need two config params; the alternative would be an ActionMapping which implement

RE: Commons Chain Cookbook: Why have Struts Actions?

2004-12-15 Thread Ted Husted
On Wed, 15 Dec 2004 17:22:15 +, Pilgrim, Peter wrote: > I was thinking in truth, only providing access to the ``catalog'' > and ``command'' not necessarily changing the execution model. But > if that is the case, could a Struts ``Action'' as it appears in > 1.2.6 actually be a commons chain `Co

RE: Commons Chain Cookbook: Why have Struts Actions?

2004-12-15 Thread Pilgrim, Peter
> -Original Message- > From: Joe Germuska [mailto:[EMAIL PROTECTED] ==== > > Peter: > > If you haven't seen it, this is effectively what the ChainAction > does, or at least what it will be doing soon. > >name="LocaleChangeForm" > > type="org.apache.co

Re: Commons Chain Cookbook: Why have Struts Actions?

2004-12-15 Thread Joe Germuska
At 7:38 AM -0600 12/15/04, Joe Germuska wrote: I've got the code written to support arbitrary properties (the new 'key' attribute in set-property), but just ran out of time to write a mini Struts App to demonstrate that it actually works. OK, I felt lame writing the above since I've been sitting

Re: Commons Chain Cookbook: Why have Struts Actions?

2004-12-15 Thread Joe Germuska
Peter: If you haven't seen it, this is effectively what the ChainAction does, or at least what it will be doing soon. name="LocaleChangeForm" type="org.apache.commons.chain.mailreader.struts.CommandActionSubclassingChainAction" >

Re: Commons Chain Cookbook: Why have Struts Actions?

2004-12-15 Thread Ted Husted
The nice thing about Struts is that we can always experiment with custom ActionMappings before adjusting the DTD. I'm sure that once we integrate Chain with Struts, and people start using Commands in their own applications, there will be several proposals regarding ways to integrate Struts with