Hi,

Action class gets populated when you invoke them by clicking on any button or 
link or anywhere....
if you invoke the class a by clicking on a.jsp and same with b,
and when you include then into c.jsp
they will work as usual no change requires!!

please correct me if I didnt get your question,

Warm Regards,



----- Original Message ----
From: Ralf Fischer <[EMAIL PROTECTED]>
To: Struts Users Mailing List <user@struts.apache.org>
Sent: Friday, March 14, 2008 2:41:52 PM
Subject: Re: Multiple Actions for a single page. Is this possible

Hi,

On 3/14/08, ravi_eze <[EMAIL PROTECTED]> wrote:
>  We have two pages a.jsp and b.jsp developed with the action class mehods
>  Ac.a() & Ac.b() that render these pages. Now we need to develop a new page
>  c.jsp which is combination of both a & b.jsps.
>
>  i can include the jsps into the c.jsp. But what abt the action class behind?
>  can they not get automatically invoked and the pages get populated? More
>  over i have some logic to be performed based on the inputs made in the two
>  sections of c.jsp. Is it possible for me to only do this part as a layer?
>
>  any ideas as how to go abt this? pl help.

Check out the <s:action /> tag, when c.jsp is rendered you can place
actions on it. All the stuff including interceptors will be invoked
for each action by creating a new action proxy. Don't forget to set
executeResult="true" so the output gets' rendered.

The surrounding action (if c.jsp is an action result) will still be on
the stack.

Cheers,
-Ralf

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


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

Reply via email to