You should "VERY RARELY" ever need to call an action from an another
action and never in the case of business logic. If you have stuff you
need to do from more than one action then you should move it out into
some helper class. I often have a UIhelper class that handles dealing
with certain common request/session things that I might need to do.
Actions should be as 'dumb' as possible and handle mostly application flow.
Marco Mistroni wrote the following on 10/8/2004 7:36 AM:
> Hello,
> Shame on me :-(
> It was enough to extend XAction to get the method that gets the data
> And put it into the session..
>
> Sorry all
>
> Regards
> marco
>
> -----Original Message-----
> From: Marco Mistroni [mailto:mmistroni@(protected)]
> Sent: 08 October 2004 12:33
> To: 'Struts Users Mailing List'
> Subject: Struts /silly question
>
> Hello all,
> I am sure this is a very easy question, but I cannot
> Figure out the solution...
>
> I have a XAction class which is in charge of calling a business
> delegate,
> Get some data and put it into the session..
>
> Now, I want to be able to call this XAction class from different action
> class (to avoid duplicate the code that loads the data and put it into
> the
> Session).
>
> Question is: how do I invoke an action2 from action1, and then return
> control action 1?
>
> Thanx in advance and regards
> Marco
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
--
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)