One class with different action methods is fine, One class with a single
execute method that's recalled is bad.
I think Milan is saying the former, if he is saying the latter then it's not
good due to the extra instructions needed to determine where you're going
from and where you're going to.
Al.
----- Original Message -----
From: "Milan Milanovic" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, May 15, 2008 3:06 PM
Subject: Re: [Struts 2] Pass value between two action classes
Why not ? Different methods are calling different result jsp-s ?
--
Milan
----- Original Message ----
From: Ravichandra C <[EMAIL PROTECTED]>
To: Struts Users Mailing List <user@struts.apache.org>
Sent: Thursday, May 15, 2008 3:52:12 PM
Subject: RE: [Struts 2] Pass value between two action classes
as I see... no!
-----Original Message-----
From: Milan Milanovic [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 15, 2008 7:20 PM
To: Struts Users Mailing List
Subject: Re: [Struts 2] Pass value between two action classes
Is a better approach to use one action class with multiple jsp pages ?
--
Thx, Milan
----- Original Message ----
From: Ravichandra C <[EMAIL PROTECTED]>
To: Struts Users Mailing List <user@struts.apache.org>
Sent: Thursday, May 15, 2008 3:44:10 PM
Subject: RE: [Struts 2] Pass value between two action classes
Here we are implementing one action class with multiple methods
providing multiple pages. More like a wizard like functionality....
however I would suggest to break things into multiple actions to the
extent possible. The main disadvantage we our approach was with the
validation layer... all had only one validate method... and we had to go
with interceptors...
-----Original Message-----
From: Milan Milanovic [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 15, 2008 7:09 PM
To: Struts Users Mailing List
Subject: Re: [Struts 2] Pass value between two action classes
O.K. Thaks.
But what is general good practice for big forms, two different forms and
actions for
one object like this, or maybe tabbedPanel or something third ? What is
easier to implement
and more efficient ?
--
Thx in advance, Milan Milanovic
----- Original Message ----
From: ravi_eze <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Thursday, May 15, 2008 7:08:57 AM
Subject: Re: [Struts 2] Pass value between two action classes
quite possible.
for this u need to define the object fruit in session scope. and in 1st
page
say: vitamins, color can be filled. In 2nd page say: weight, age can be
filled and all the time the same object fruit in the session would be
filled.
http://struts.apache.org/2.x/docs/scope-interceptor.html
hope this helps.
ravi
--
View this message in context:
http://www.nabble.com/-Struts-2--Pass-value-between-two-action-classes-t
p17234969p17246034.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]