I have not tried this but think this should work..

1: In Action 1, after getting the data,U say return 
maping.findForward("success");
2: success forward does a forward to u jsp1...

In jsp1,U first display data given by action1.
3: thenm after that u do a jsp:inlude which calls action 2.
4:action 2 gets the data and does a forward to jsp2 which shows data from 
action 2. and then does a jsp:include which calls action 3.
5:action 3 then gets the data and does a forward to jsp3 which displaya the 
data from action 3
So in effect u are doing something like
(Jsp1..includes jsp2 and jsp3.)

And if u want to use those actions in other context as well, then before doing 
those fiorwards, u will have to put a check to see where the request is coming 
from(you can use mapping.getParameter()).if its from some other page , then do 
the normal forward which may to another jsp without any includes..

Hope this helps,
Shirish

-----Original Message-----
From: miguel-angel.mulero [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 4:31 PM
To: struts-user
Subject: RE: Include an Action in a page


Hi,
I've got a page wich must execute 3 actions and print the page result of it:

------------
 ACTION1
------------
 AC2 | AC3
------------

I wan't to make the three action independent, so I want to include them in
the principal with some include (<template:insert> or <jsp:include> ...)

Some idea??

Thanks!!
Miguel

> -----Mensaje original-----
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Enviado el: martes, 26 de noviembre de 2002 16:27
> Para: [EMAIL PROTECTED]
> Asunto: RE: Include an Action in a page
>
>
> Can u specify u r requirement please?
> Because if U need to show the output of 2 actions on the screen ,
> still they
> can use the forwards and use request as a shared container to
> pass along any
> data beans.
>
> but hwy a template needs to include action?
>
> -----Original Message-----
> From: miguel-angel.mulero [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:10 PM
> To: struts-user
> Subject: Include an Action in a page
>
>
> Hi all, I've got a little problem.
>
> I'm using Struts 1.0.2, and I'm using Templates (not Tiles). I use
> <template:insert> to include a little page inside my page. This work great
> with HTML and JSP, but not with actions. How can I do it for:
>
> <template:insert template="action.do" />
>
> Is there other way to do this?
>
> Thanks to all!!
> Miguel
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to