RE: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Tarek Nabil
PROTECTED] Sent: Wednesday, November 29, 2006 5:36 PM To: Struts Users Mailing List Subject: Re: Does Struts 2 solve the action chaining problem? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tarek, Tarek Nabil wrote: One of the problems with Struts was that if you had a page that requires some

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Ted Husted
Action Chaining First, we usually define action chaining as creating a move action by having a copy action forward to a delete action. Simply going from one action to another isn't a classic example of harmful chaining. The key point is whether only one action resolves the business use case.

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Michael Jouravlev
On 11/28/06, Tarek Nabil [EMAIL PROTECTED] wrote: Hi, One of the problems with Struts was that if you had a page that requires some setup and this page submits to an Action, then you would not be able to set validate to true on that action because if validation problems occur then Struts will

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Michael Jouravlev
On 11/29/06, Yujun Liang [EMAIL PROTECTED] wrote: To solve the action chaining problem, I wrote a subclass of RequestProcessor. In the subclass, override some templates method. In the last method of process(), I set a flag in request, and I check for this flag in some methods and if the flag is

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Hubert Rabago
If not this specific implementation, an otherwise clean way to handle view preprocessing after a validation failure. It can build on the action-forward-specific command chain, but a solution that's more tightly integrated with action objects should be considered as well. Hubert On 11/30/06,

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tarek, Tarek Nabil wrote: Christopher, I really wonder if the Struts you're talking about is the one I've using for years now!! The Struts I know sucks big time when it comes to action chaining. I'm afraid I don't understand how defining two

Re: Does Struts 2 solve the action chaining problem?

2006-11-29 Thread Yujun Liang
To solve the action chaining problem, I wrote a subclass of RequestProcessor. In the subclass, override some templates method. In the last method of process(), I set a flag in request, and I check for this flag in some methods and if the flag is there, it means it is the chained action and the

Re: Does Struts 2 solve the action chaining problem?

2006-11-29 Thread Mark Menard
On 11/29/06 12:44 AM, Tarek Nabil [EMAIL PROTECTED] wrote: One of the problems with Struts was that if you had a page that requires some setup and this page submits to an Action, then you would not be able to set validate to true on that action because if validation problems occur then Struts

Re: Does Struts 2 solve the action chaining problem?

2006-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tarek, Tarek Nabil wrote: One of the problems with Struts was that if you had a page that requires some setup and this page submits to an Action, then you would not be able to set validate to true on that action because if validation problems

Does Struts 2 solve the action chaining problem?

2006-11-28 Thread Tarek Nabil
Hi, One of the problems with Struts was that if you had a page that requires some setup and this page submits to an Action, then you would not be able to set validate to true on that action because if validation problems occur then Struts will take you directly to the input JSP without performing

Re: Does Struts 2 solve the action chaining problem?

2006-11-28 Thread Craig McClanahan
On 11/28/06, Tarek Nabil [EMAIL PROTECTED] wrote: Hi, One of the problems with Struts was that if you had a page that requires some setup and this page submits to an Action, then you would not be able to set validate to true on that action because if validation problems occur then Struts will