Actually, the value of the redirect attribute also plays a role. True, when forwarding to a JSP, utlimately the request ends with the JSP generating content and sending it the the browser. If one of your actions is invoking another action using findForward, pay attenting to the redirect attribute defined for the target forward.
If it is set to true, the request will end, because the container will actually send a response to the client, with a redirect HTTP header. If it is false, then the request forwards to the target action. You can access the value of the redirect attribute from ActionForward.getRedirect(), you can even manipulate it with ActionForward.setRedirect() if you need to--I recommend against it as ActionForward objects appear to be cached as singletons at the application/servlet context. Thomas Gideon Sr. Software Developer B2eMarkets 301.230.2236 Tel. 301.230.2248 Fax. [EMAIL PROTECTED] www.B2eMarkets.com > -----Original Message----- > From: Dave Derry [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 19, 2002 9:18 AM > To: Struts Users Mailing List > Subject: Re: jsp-to-action-to-action: when does the request die > > > The second action has access to it; if you mean save.do is 1 > & edit.do is 2. > If edit .do forwards to somethingelse.do, it also has access > to it. The > request 'dies' when the action sends the response to the client. > > Dave Derry > > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > > > > I want to do something this: > > > > (1) (2) (3) > > /edit.do ---> JSP ---> /save.do ---> /edit.do > > > > (1) Action '/edit.do' preps and displays the JSP > > (does a mapping.finfDorward()) > > (2) JSP is submitted and POSTs to action, '/save.do' > > (3) '/save.do' processes the save and does a > > mapping.finfForward() back to '/edit.do' to re-display > > the JSP > > > > My question is this: does the request created the JSP > > POST die at the first action class or does the second > > action class have access to it? > > > > __________________________________________________________ > > Get your FREE personalized e-mail at http://www.canada.com > > > > -- > > 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]>

