Thanks for the replies.
>From Lee Elenbass:
> why not simply add a parameter to B's URL like:
> sendRedirect("B?back=C");
I don't want to use sendRedirect, because I would like to avoid a new
round trip to the client browser before the forward. That is why I'm
using the jsp:forward tag.
I believe that it has been discussed before in this list that added
parameters get stripped when the forward is called. I'll try this again
to make sure.
>From Jianjun Xu:
> User the "referer" header info (Note "referer" not "referrer").
I tried this. The reference I get is to A, not C. In other words, it
shows the original referer, not the page that does the forward.
Thanks again, any other ideas?
Carles
Carles Pi-Sunyer wrote:
>
> I'm trying to capture the name of the page that forwards to a new page.
>
> My specific situation is that I have three pages: A, B, C. Normally A
> has a link to C:
>
> A -> C
>
> Sometimes if a condition is not met (insufficient user information), C
> forwards to B:
>
> A -> C -forward-> B.
>
> What I would like to do is let B know the name of C, so that after the
> user information is gathered, B can send the user back to C.
>
> A -> C -forward-> B -(for processing input)-> B -forward-> C
>
> Which will look to the user like:
>
> A -> B -> C
>
> I can't figure out how B can get the name of C.
>
> I've actually worked a pretty ugly hack for a specific case, but would
> like to know how to do this in a general case.
>
> Thank You,
> Carles
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html