Well, the problem is that I am including this fragment in *all* of my pages. (The form allows the user to login -- otherwise, the user is a "guest"). Basically, I want the "forward" of the action that processes the form to not be "hard-coded" to a specific path but instead to the page that included it (actually to be more precise from the current URL). Here is a visualization of what I want to do:
importedForm.jsp --submit--> login.do --redirect-->ActionA.do | ActionA.do --forwards--> PageA.jsp ActionB.do --forwards--> PageB.jsp | importedForm.jsp --submit--> login.do --redirect-->ActionB.do -----Original Message----- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 4:55 PM To: Struts Users Mailing List Subject: Re: How to forward back to including page I'm a little confused, but when you submit the form the target should be an action and couldnt you just do the processing within that action and if its successful forward back to the page that includes the form? ----- Original Message ----- From: "Siggelkow, Bill" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 03, 2003 2:19 PM Subject: How to forward back to including page > I have an included page (included using <c:import>) that contains a form. If the form processes successfully I want to return > back to the original including page. Is there a clean way of doing this? The problem I have is that my action for the included page > does not know anything about the page that includes it. Maybe I could use pass a request attribute that specifies the original URL or action? > Any ideas? > > Bill Siggelkow > 678.579.6458 > Mirant > http://www.mirant.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]