Hi,

i have a problem with an internal redirect and the referer from the
request.

Short description :

1. Pipeline :     publish page A
2. Pipeline :     called by a button of page A
                  inside there is an action that identifies if there is a
validation problem
                  if there is a problem   -     redirects to it's referer
(1. Pipeline)
                  if there is none        -     internal redirect to
pipeline 3
3. Pipeline :     publish page B
4. Pipeline :     called by a button of page B
                  inside there is the same action that identifies if there
is a validation problem
                  if there is none        -     internal redirect to
pipeline x
                  if there is a problem   -     redirects to it's referer
(2. Pipeline)

I don´t want to redirect to pipeline 2, but 3 !!

The problem is, that i want to redirect internal and so the referer still
points to the last pipeline (2. Pipeline)

My Question :

What do you think about a new method getReferer() at the
org.apache.cocoon.environment.Request - Interface ?

Depending on whether it's an external or an internal redirect it's
implementation delivers the original value from the header
or the "internal" value that is set when an internal redirect is called.

Or does someone have a better idea ?
(I know i could use external redirect, but i don't want to :-) )

Thanks, Jürgen Seitz

Reply via email to