Re: best practice to avoid chaining actions

2003-11-21 Thread Nicolas De Loof
o:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 10:56 AM To: Struts Users Mailing List Subject: RE: best practice to avoid chaining actions > -Original Message- > From: Nicolas De Loof [mailto:[EMAIL PROTECTED] > Sent: Friday, November 21, 2003 2:58 PM > To: Struts Users Ma

RE: best practice to avoid chaining actions

2003-11-21 Thread shirishchandra.sakhare
03 10:56 AM To: Struts Users Mailing List Subject: RE: best practice to avoid chaining actions > -Original Message- > From: Nicolas De Loof [mailto:[EMAIL PROTECTED] > Sent: Friday, November 21, 2003 2:58 PM > To: Struts Users Mailing List > Subject: Re: best practice to

RE: best practice to avoid chaining actions

2003-11-21 Thread Krishnakumar N
> -Original Message- > From: Nicolas De Loof [mailto:[EMAIL PROTECTED] > Sent: Friday, November 21, 2003 2:58 PM > To: Struts Users Mailing List > Subject: Re: best practice to avoid chaining actions > > > > > > Hello, > > > > If actio

Re: best practice to avoid chaining actions

2003-11-21 Thread Nicolas De Loof
> Hello, > > If action chaining is a design error, then the struts-example that > comes with struts distributions has a design error, saveSubscription > forwards to editRegistration.do! > > Anyway, what I do is keep validation off action classes, by moving > them off to action forms using validat

RE: best practice to avoid chaining actions

2003-11-21 Thread Krishnakumar N
: Struts Users Mailing List Subject: best practice to avoid chaining actions Hi all, I've read on this list that chaining actions is considered as a design error. On the project I'm working on, some developers need to make some business validation on a form before going to the next

best practice to avoid chaining actions

2003-11-21 Thread Nicolas De Loof
Hi all, I've read on this list that chaining actions is considered as a design error. On the project I'm working on, some developers need to make some business validation on a form before going to the next page. This validation occurs in an Action class, let's say Action1.

Re: chaining actions

2003-11-12 Thread Manish Singla
It's true. In case you have coarse grained ActionForm which is used by BOTH actions in that case reset() will be called twice as request will go from RequestProcessor both times. Theoretically, in case you have DIFFERENT ActionForms for BOTH actions in that case reset() will be called for re

chaining actions

2003-11-12 Thread Yury Rabiankou
Hello everybody, I cannot understand the following passage from Ted Husted's Struts in Action (p.228): "If you forward from one Action to another Action... the ActionForm bean is reset, repopulated, and revalidated, and, if all goes well, passed to the second Action" How can the same ActionForm

Re: Chaining Actions.

2003-11-03 Thread Manish Singla
Try forward as follows Ashutosh Satyam wrote: Hi, I just wanted to know how do I chain the actions, if the action classes sit in separate struts-config file. The two struts configuration files are as mentioned below. Struts-configApp1.xml type="com.test.Operation" scope="request"

Chaining Actions.

2003-11-03 Thread Ashutosh Satyam
Hi, I just wanted to know how do I chain the actions, if the action classes sit in separate struts-config file. The two struts configuration files are as mentioned below. Struts-configApp1.xml Struts-configApp2.xml Snippet of the web descriptor file. actio

Chaining actions

2002-12-13 Thread mailinglists
Hopefully someone can advise me how to get round this. Essentially I have an action that prepares a page, then forwards to a jsp. The jsp submits back to the same action, the action carries out certain operations dependant upon a hidden flag, then if necessary forwards on to another action, o

RE: Loosing form data when chaining actions

2002-12-10 Thread ROSSEL Olivier
> I have encountered this problem before. Try this: > Within your first Action set the get the values that are not > being passed from the request object. Then before forwarding > to the next Action set these values explicitly in the request > objects attributes. My current method is to use a

RE: Loosing form data when chaining actions

2002-12-10 Thread Gustavo Lopez
Olivier [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 12:43 PM To: 'Struts Users Mailing List' Subject: RE: Loosing form data when chaining actions > >>>Hi, > >>> > >>>I defined 2 actions in session scope referring the same > &

RE: Loosing form data when chaining actions

2002-12-10 Thread ROSSEL Olivier
> >>>Hi, > >>> > >>>I defined 2 actions in session scope referring the same > >>> > >>form. The first > >> > >>>action sets some properties in the form and then forwards > >>> > >>the request to the > >> > >>>second action. The second action sets some more properties > >>> > >>and then forwards

Re: Loosing form data when chaining actions

2002-12-10 Thread James Mitchell
ROSSEL Olivier wrote: Hi, I defined 2 actions in session scope referring the same form. The first action sets some properties in the form and then forwards the request to the second action. The second action sets some more properties and then forwards to a JSP page which contains the

RE: Loosing form data when chaining actions

2002-12-10 Thread ROSSEL Olivier
> > Hi, > > > > I defined 2 actions in session scope referring the same > form. The first > > action sets some properties in the form and then forwards > the request to the > > second action. The second action sets some more properties > and then forwards > > to a JSP page which contains the htm

Re: Loosing form data when chaining actions

2002-12-09 Thread Martin Cooper
On Tue, 3 Dec 2002, [utf-8] Etienne Labonté wrote: > Hi, > > I defined 2 actions in session scope referring the same form. The first > action sets some properties in the form and then forwards the request to the > second action. The second action sets some more properties and then forwards > to

RE: Loosing form data when chaining actions

2002-12-04 Thread shirishchandra . sakhare
form data when chaining actions 1. make sure u are not creating a new instance of the form bean in the second action and you have name attribute for both the action mappings(they should be same, since u are using same form in both actions). 2. if you are going from the first action to the second

RE: Loosing form data when chaining actions

2002-12-03 Thread VEDRE, RANAPRATAP REDDY
- From: Etienne Labonté [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 03, 2002 4:11 PM To: Struts Users Mailing List (E-mail) Subject: Loosing form data when chaining actions Hi, I defined 2 actions in session scope referring the same form. The first action sets some properties in the form and

Loosing form data when chaining actions

2002-12-03 Thread Etienne Labonté
Hi, I defined 2 actions in session scope referring the same form. The first action sets some properties in the form and then forwards the request to the second action. The second action sets some more properties and then forwards to a JSP page which contains the html form. The problem is only the

Chaining actions

2002-09-10 Thread Brett
Hello, I have a situation where I need to call an action and then following that action call another one before doing an Action Forward to a JSP page. From what I can tell there are various ways I could do this. One is to simply specify this in the struts-config file ie

Chaining actions etc...

2001-12-14 Thread Tuomo Syvänperä
Hi, There's been loads of discussion about how to implement this action chaining.. Last night I cooked up yet another possible way to do it.. The chainToPage class implementation by Keith Bacon posted earlier seemed like a nice way to do it at first.. But what I'm looking for is a more generic w

RE: Re[2]: Passing parameters when chaining actions

2001-07-27 Thread Fabien Modoux
-Original Message- From: Oleg V Alexeev [mailto:[EMAIL PROTECTED]] Sent: Friday, July 27, 2001 3:53 PM To: [EMAIL PROTECTED] Subject: Re[2]: Passing parameters when chaining actions Hello Fabien, Friday, July 27, 2001, 11:29:06 PM, you wrote: FM> Hello Oleg, FM> Thanks for your help. >

Re[2]: Passing parameters when chaining actions

2001-07-27 Thread Oleg V Alexeev
attributes gets you less overhead against query string. FM> Thanks, FM> -Fabien FM> - FM> Fabien Modoux, FM> Voicemate - http://www.voicemate.com FM> -Original Message- FM> From: Oleg V Alexeev [mailto:[EMAIL PROTECTED]] FM>

RE: Passing parameters when chaining actions

2001-07-27 Thread Fabien Modoux
nt: Friday, July 27, 2001 2:34 PM To: [EMAIL PROTECTED] Subject: Re: Passing parameters when chaining actions Hello Fabien, Friday, July 27, 2001, 8:02:28 PM, you wrote: FM> I would like to have an action pass parameters FM> to another actions using a forward action mapping. FM> The sec

Re: Passing parameters when chaining actions

2001-07-27 Thread Oleg V Alexeev
Hello Fabien, Friday, July 27, 2001, 8:02:28 PM, you wrote: FM> I would like to have an action pass parameters FM> to another actions using a forward action mapping. FM> The second action is configured with a form in FM> the request scope: FM> type="Action2Form"/> FM>

Passing parameters when chaining actions

2001-07-27 Thread Fabien Modoux
I would like to have an action pass parameters to another actions using a forward action mapping. The second action is configured with a form in the request scope: I tried to have the first action instantiate the form, populate it, and set it as a request

chaining actions

2001-07-24 Thread Bono, Chris
I have two Actions chained together and my appserver is throwing core dumps on me left and right if I issue too many repeat requests. Here are the mappings: So I have a jsp that shows a t