Hi,
maybe the struts templates might help you...
look at the template sample
hope this helps
Alexander Jesse
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 5:50 AM
To: [EMAIL PROTECTED]
Subject: Re: More than one action for a request
What I am looking for is a way to display a jsp for EVERY action. This would
be done by using something like this in a regular servlet:
RequestDispatcher rd = getServletContext().getRequestDispatcher();
// Go to action one
rd.include(request, response);
// Go to action two
rd.include(request, response);
// Go to action three
rd.include(request, response);
and so on...
The purpose is to be able to build up a page by smaller parts that are self
contained and not aware of the other parts.
>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: More than one action for a request
>Date: Sun, 23 Sep 2001 13:25:38 -0700
>
>I'm not sure I understand what you want to do. In the example you gave, it
>looks like all three actions could come up with different JSP pages to
>display. Who decides what really gets sent back to the client?
>
>You can certainly chain actions, by specifying an action instead of a JSP
>page in your forwards, like this:
>
> <forward name="success" path="nextAction.do" />
>
>--
>Martin Cooper
>
>
>----- Original Message -----
>From: "Hakan Forss" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Sunday, September 23, 2001 12:55 PM
>Subject: More than one action for a request
>
>
> > Hi,
> > I am new to Stuts and would like to do the following:
> > 1. request comes in and is passed to an action
> > 2. action performs its logic and decides what jsp to display
> > 4. second action performs its logic and decides what jsp to display
> > 5. third action performs its logic and decides what jsp to display
> > and so on..
> >
> > I don't want the jsp pages to pass back the control to the servlet. The
> > process chain should be defined by the actions or in the struts-config
>file.
> >
> > Can this be done?
> >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp
> >
>
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp