struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milan Milanovic <milanmilanov...@yahoo.com>
Subject Re: [Struts 2] Pass value between two action classes
Date Thu, 15 May 2008 13:50:12 GMT
Is a better approach to use one action class with multiple jsp pages ?
--
Thx, Milan


----- Original Message ----
From: Ravichandra C <ravichandrac@ivycomptech.com>
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:milanmilanovich@yahoo.com] 
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 <ravichandrac@ivycomptech.com>
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message