You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Witold Treliński <tr...@polbox.com> on 2002/11/08 10:41:48 UTC

Redirect in XSP

Hi!

I have a question. How to make o redirection in XSP from one page to other
depeneding on some code in <xsp:logic>? I tried <xsp-response:send-redirect
url="any"/> and it doesn't work.

WT


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Redirect in XSP

Posted by Ludovic de Beaurepaire <lu...@axonie.com>.
Hi Neil,

It is not very clean, but if you don't find another solution, you can read
in you Action the file content/table_names.xml to find your URL (if it is a
static file, you do it once). You can so add it in a sitemap parameter.

Ludovic

----- Original Message -----
From: "Neil A" <my...@neilabraham.co.uk>
To: <co...@xml.apache.org>
Sent: Saturday, November 09, 2002 5:06 PM
Subject: Re: Redirect in XSP


> Thanks Joerg and Artur, but in my case I'm building for WAP.
> Unfortunately the WML equivalent of your client side redirect crashes
> early Nokia 7110 phones.
>
> I really want to use <map:redirect-to> but my URL is in the XML of the
> pipeline and I can't get it into a sitemap parameter:
>
> <map:match pattern="link/id*">
> <map:generate src="content/table_names.xml"/>
> <map:transform src="directory/format_link_query.xsl" type="xslt">
> <map:parameter name="link_id" value="{1}"/>
> </map:transform>
> <map:transform type="sql"/>
>
> <!-- Missing link to get url from xml and make into sitemap parameter
> -->
>
> <map:redirect-to uri="{take_me_here}"/>
> </map:match>
>
> Actions can't seem to read or transform the pipeline xml, they can only
> read and act on request parameters.  XSLT transformers can't create
> sitemap parameters.  So I'm a bit stuck.  Can anyone fill in the gap?
>
> Thanks,
>
> Neil.
>
>
> On Saturday, November 9, 2002, at 03:23 AM, Artur Bialecki wrote:
>
> >
> >> Who should close the <head/> element? The transformer can not send an
> >> endElement() until everything inside is processed. Of course you have
> > to
> >
> > Ofcourse, I don't know what I was thinking.
> >
> >> Does this make it a bit clearer? Everybody can of course improve my
> >
> > This makes it very clear.
> >
> > Thanks Joerg,
> >
> > Artur...
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question  has not already been answered in the
> > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
> >
> >
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>
>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Redirect in XSP

Posted by Neil A <my...@neilabraham.co.uk>.
Thanks Joerg and Artur, but in my case I'm building for WAP.  
Unfortunately the WML equivalent of your client side redirect crashes 
early Nokia 7110 phones.

I really want to use <map:redirect-to> but my URL is in the XML of the 
pipeline and I can't get it into a sitemap parameter:

<map:match pattern="link/id*">
	<map:generate src="content/table_names.xml"/>
	<map:transform src="directory/format_link_query.xsl" type="xslt">
		<map:parameter name="link_id" value="{1}"/>
	</map:transform>
	<map:transform type="sql"/>

	<!-- Missing link to get url from xml and make into sitemap parameter 
-->

	<map:redirect-to uri="{take_me_here}"/>
</map:match>

Actions can't seem to read or transform the pipeline xml, they can only 
read and act on request parameters.  XSLT transformers can't create 
sitemap parameters.  So I'm a bit stuck.  Can anyone fill in the gap?

Thanks,

Neil.


On Saturday, November 9, 2002, at 03:23 AM, Artur Bialecki wrote:

>
>> Who should close the <head/> element? The transformer can not send an
>> endElement() until everything inside is processed. Of course you have
> to
>
> Ofcourse, I don't know what I was thinking.
>
>> Does this make it a bit clearer? Everybody can of course improve my
>
> This makes it very clear.
>
> Thanks Joerg,
>
> Artur...
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Redirect in XSP

Posted by Artur Bialecki <ar...@digitalfairway.com>.
> Who should close the <head/> element? The transformer can not send an 
> endElement() until everything inside is processed. Of course you have
to 

Ofcourse, I don't know what I was thinking.

> Does this make it a bit clearer? Everybody can of course improve my 

This makes it very clear.

Thanks Joerg,

Artur...


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Redirect in XSP

Posted by Joerg Heinicke <jo...@gmx.de>.
What causes </HEAD> to be sent? Let's assume you have a pipe consisting 
of a generator, a transformer and a serializer. Normally the XSP creates 
SAX events for a XML like this:

<page>
   <title>test page</title>
   <paragraph>A short sentence.</paragraph>
</page>

But in some special cases a redirect shoud happen:

<page>
   <redirect url="http://www.new.url.com"/>
</page>

And the transformer can look like:

<xsl:template match="page">
   <html>
     <head>
       <xsl:apply-templates select="title | redirect"/>
     </head>
     <body>
       <xsl:apply-templates select="paragraph"/>
     </body>
   </html>
</xsl:template>

<xsl:template match="title">
   <xsl:copy-of select="."/>
</xsl:template>

<xsl:template match="redirect">
   <meta http-equiv="Refresh" content="0; URL={@url}"/>
</xsl:template>

<xsl:template match="paragraph">
...
</xsl:template>

Who should close the <head/> element? The transformer can not send an 
endElement() until everything inside is processed. Of course you have to 
process <redirect/> in <head/> independent where it was written in the 
original XML.

Even if the generated XML is much more complex and the <redirect/> 
element is created as last beneath thousands of other elements, if you 
use a stylesheet similar to the above one, which says "process this 
<redirect/> now, because I want to have it as child of <head/>", the SAX 
event for endElement() of <head/> can't be sent to the serializer.

I don't want to say something wrong, but let me speak in pictures: A 
pipe is not a single lane tube, where the first car, which gets in, is 
the first car, which must get out. A transformer can disturb this 
perfect organisation. Let it be a car park, where everything can get 
mixed up: If all the cars come out of the tube and have to wait at the 
car park until the last car comes also out, because this one must be the 
first, which gets into the next tube, it will be obviously bad, but not 
impossible. (If the car park is full, you will have an OutOfMemoryError 
or a NoMoreDTMIdsException. ;-) Furthermore this shows, how important 
well structured XML and good stylesheets are. Especially the usage of 
"//redCars" has to search all cars for red ones.

Does this make it a bit clearer? Everybody can of course improve my 
"model" ;-) What about structured car transports or child cars?

Regards,

Joerg

Artur Bialecki wrote:
> Hi Joerg,
> 
> I was under the impression that once generation started
> sax events go through tarnsformers and a serializer and
> data is sent back to the browser. So if the <redirect url="any"/>
> is emitted after the tags that caused </HEAD> to be sent
> to the browser this would not work.
> 
> Would it?
> 
> Artur...
> 
> 
>>-----Original Message-----
>>From: Joerg Heinicke [mailto:joerg.heinicke@gmx.de] 
>>Sent: November 8, 2002 7:42 PM
>>To: cocoon-users@xml.apache.org
>>Subject: Re: Redirect in XSP
>>
>>
>>Hi Artur,
>>
>>where is the problem?
>>
>>Instead of <xsp-response:send-redirect url="any"/> you create a own 
>>element like <redirect url="any"/> in the XML. This is processed by a 
>>transformer to <meta http-equiv="Refresh" content="0; URL=any"/> and 
>>sent to the browser. Even if it's a very poor solution, there 
>>shell be 
>>no problem with it. I prefer the test while setting up the pipeline.
>>
>>Regards,
>>
>>Joerg
>>
>>Artur Bialecki wrote:
>>
>>>>-----Original Message-----
>>>>From: Ilya A. Kriveshko [mailto:ilya@kaon.com] 
>>>>Sent: November 8, 2002 10:41 AM
>>>>To: cocoon-users@xml.apache.org
>>>>Subject: Re: Redirect in XSP
>>>>
>>>>
>>>>If you want to redirect the browser to a new URL after the
>>>>pipeline has been constructed and the generation has (possibly)
>>>>started, you can do that by outputting the <META> tag in the
>>>>output HTML.
>>>>
>>>><meta http-equiv="Refresh" content="0; URL=/some/local/url"/>
>>>>or
>>>><meta http-equiv="Refresh" content="0; 
>>>>URL=http://some.com/other/url"/>
>>>>
>>>>"0" means no delay.
>>>
>>>
>>>How would this work if half of my page has already been
>>>sent to the browser including the </HEAD> tag?
>>>Please clarify.
>>>
>>>
>>>Artur...


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Redirect in XSP

Posted by Artur Bialecki <ar...@digitalfairway.com>.
Hi Joerg,

I was under the impression that once generation started
sax events go through tarnsformers and a serializer and
data is sent back to the browser. So if the <redirect url="any"/>
is emitted after the tags that caused </HEAD> to be sent
to the browser this would not work.

Would it?

Artur...

> -----Original Message-----
> From: Joerg Heinicke [mailto:joerg.heinicke@gmx.de] 
> Sent: November 8, 2002 7:42 PM
> To: cocoon-users@xml.apache.org
> Subject: Re: Redirect in XSP
> 
> 
> Hi Artur,
> 
> where is the problem?
> 
> Instead of <xsp-response:send-redirect url="any"/> you create a own 
> element like <redirect url="any"/> in the XML. This is processed by a 
> transformer to <meta http-equiv="Refresh" content="0; URL=any"/> and 
> sent to the browser. Even if it's a very poor solution, there 
> shell be 
> no problem with it. I prefer the test while setting up the pipeline.
> 
> Regards,
> 
> Joerg
> 
> Artur Bialecki wrote:
> >>-----Original Message-----
> >>From: Ilya A. Kriveshko [mailto:ilya@kaon.com] 
> >>Sent: November 8, 2002 10:41 AM
> >>To: cocoon-users@xml.apache.org
> >>Subject: Re: Redirect in XSP
> >>
> >>
> >>If you want to redirect the browser to a new URL after the
> >>pipeline has been constructed and the generation has (possibly)
> >>started, you can do that by outputting the <META> tag in the
> >>output HTML.
> >>
> >><meta http-equiv="Refresh" content="0; URL=/some/local/url"/>
> >>or
> >><meta http-equiv="Refresh" content="0; 
> >>URL=http://some.com/other/url"/>
> >>
> >>"0" means no delay.
> > 
> > 
> > How would this work if half of my page has already been
> > sent to the browser including the </HEAD> tag?
> > Please clarify.
> > 
> > 
> > Artur...
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Redirect in XSP

Posted by Joerg Heinicke <jo...@gmx.de>.
Hi Artur,

where is the problem?

Instead of <xsp-response:send-redirect url="any"/> you create a own 
element like <redirect url="any"/> in the XML. This is processed by a 
transformer to <meta http-equiv="Refresh" content="0; URL=any"/> and 
sent to the browser. Even if it's a very poor solution, there shell be 
no problem with it. I prefer the test while setting up the pipeline.

Regards,

Joerg

Artur Bialecki wrote:
>>-----Original Message-----
>>From: Ilya A. Kriveshko [mailto:ilya@kaon.com] 
>>Sent: November 8, 2002 10:41 AM
>>To: cocoon-users@xml.apache.org
>>Subject: Re: Redirect in XSP
>>
>>
>>If you want to redirect the browser to a new URL after the
>>pipeline has been constructed and the generation has (possibly)
>>started, you can do that by outputting the <META> tag in the
>>output HTML.
>>
>><meta http-equiv="Refresh" content="0; URL=/some/local/url"/>
>>or
>><meta http-equiv="Refresh" content="0; 
>>URL=http://some.com/other/url"/>
>>
>>"0" means no delay.
> 
> 
> How would this work if half of my page has already been
> sent to the browser including the </HEAD> tag?
> Please clarify.
> 
> 
> Artur...


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Redirect in XSP

Posted by Artur Bialecki <ar...@digitalfairway.com>.
> -----Original Message-----
> From: Ilya A. Kriveshko [mailto:ilya@kaon.com] 
> Sent: November 8, 2002 10:41 AM
> To: cocoon-users@xml.apache.org
> Subject: Re: Redirect in XSP
> 
> 
> If you want to redirect the browser to a new URL after the
> pipeline has been constructed and the generation has (possibly)
> started, you can do that by outputting the <META> tag in the
> output HTML.
> 
> <meta http-equiv="Refresh" content="0; URL=/some/local/url"/>
> or
> <meta http-equiv="Refresh" content="0; 
> URL=http://some.com/other/url"/>
> 
> "0" means no delay.

How would this work if half of my page has already been
sent to the browser including the </HEAD> tag?
Please clarify.


Artur...






> --
> Ilya
> 
> Artur Bialecki wrote:
> 
> >Witold,
> >
> >First of all processing of XSP is done by a Generator
> >which is part of pipeline *execution*. This means that
> >it's too late to redirect at that point since some data
> >might already been sent back to the browser (depends 
> >on the size of your serializer buffer).
> >
> >You should only redirect during pipeline *setup*,
> >before any generators are called.
> >
> >Assuming you using Cocoon 2.0.x you probably want write
> >and Action that checks for condition that might cause
> >redirection and return it as a sitemap parameter
> >and use <map:redirect-to> before generation of your
> >XSP.
> >
> >Witold & Neil
> >
> >Look at ServerPagesAction.java and action.xsl
> >in cocoon source.
> >
> >Artur...
> >
> >
> >  
> >
> >>-----Original Message-----
> >>From: Neil A [mailto:mylists@neilabraham.co.uk] 
> >>Sent: November 8, 2002 10:16 AM
> >>To: cocoon-users@xml.apache.org
> >>Subject: Re: Redirect in XSP
> >>
> >>
> >>Hi all
> >>
> >>I joined the cocoon users list today to ask a very similar question.
> >>
> >>I have a list of external URLs held in XML and I have a pipeline to 
> >>pick the right one.  I want to use <map:redirect-to> within the 
> >>sitemap, but I can't find a way to get the URL out of XML and 
> >>make it a 
> >>sitemap parameter for <map:redirect-to> to use.
> >>
> >>Can anyone help us both?
> >>
> >>Thanks,
> >>
> >>Neil.
> >>
> >>
> >>On Friday, November 8, 2002, at 09:41 AM, Witold Treliñski wrote:
> >>
> >>    
> >>
> >>>Hi!
> >>>
> >>>I have a question. How to make o redirection in XSP from 
> >>>      
> >>>
> >>one page to 
> >>    
> >>
> >>>other
> >>>depeneding on some code in <xsp:logic>? I tried 
> >>><xsp-response:send-redirect
> >>>url="any"/> and it doesn't work.
> >>>
> >>>WT
> >>>
> >>>
> >>>
> >>>      
> >>>
> >>------------------------------------------------------------
> ---------
> >>    
> >>
> >>>Please check that your question  has not already been 
> >>>      
> >>>
> >>answered in the
> >>    
> >>
> >>>FAQ before posting.     
> >>>      
> >>>
> >><http://xml.apache.org/cocoon/faq/in> dex.html>
> >>    
> >>
> >>>To 
> >>>      
> >>>
> >>unsubscribe, e-mail:     
> >><co...@xml.apache.org>
> >>    
> >>
> >>>For additional commands, e-mail:   
> >>>      
> >>>
> >><co...@xml.apache.org>
> >>    
> >>
> >>>      
> >>>
> >>------------------------------------------------------------
> ---------
> >>Please check that your question  has not already been 
> answered in the
> >>FAQ before posting.     
> <http://xml.apache.org/cocoon/faq/in> dex.html>
> >>
> >>To 
> unsubscribe, e-mail:     
> <co...@xml.apache.org>
> >>For additional commands, e-mail:   
> <co...@xml.apache.org>
> >>
> >>    
> >>
> >
> >
> >---------------------------------------------------------------------
> >Please check that your question  has not already been answered in the
> >FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >
> >To unsubscribe, e-mail:     <co...@xml.apache.org>
> >For additional commands, e-mail:   <co...@xml.apache.org>
> >
> >
> >  
> >
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Redirect in XSP

Posted by "Ilya A. Kriveshko" <il...@kaon.com>.
If you want to redirect the browser to a new URL after the
pipeline has been constructed and the generation has (possibly)
started, you can do that by outputting the <META> tag in the
output HTML.

<meta http-equiv="Refresh" content="0; URL=/some/local/url"/>
or
<meta http-equiv="Refresh" content="0; URL=http://some.com/other/url"/>

"0" means no delay.
--
Ilya

Artur Bialecki wrote:

>Witold,
>
>First of all processing of XSP is done by a Generator
>which is part of pipeline *execution*. This means that
>it's too late to redirect at that point since some data
>might already been sent back to the browser (depends 
>on the size of your serializer buffer).
>
>You should only redirect during pipeline *setup*,
>before any generators are called.
>
>Assuming you using Cocoon 2.0.x you probably want write
>and Action that checks for condition that might cause
>redirection and return it as a sitemap parameter
>and use <map:redirect-to> before generation of your
>XSP.
>
>Witold & Neil
>
>Look at ServerPagesAction.java and action.xsl
>in cocoon source.
>
>Artur...
>
>
>  
>
>>-----Original Message-----
>>From: Neil A [mailto:mylists@neilabraham.co.uk] 
>>Sent: November 8, 2002 10:16 AM
>>To: cocoon-users@xml.apache.org
>>Subject: Re: Redirect in XSP
>>
>>
>>Hi all
>>
>>I joined the cocoon users list today to ask a very similar question.
>>
>>I have a list of external URLs held in XML and I have a pipeline to 
>>pick the right one.  I want to use <map:redirect-to> within the 
>>sitemap, but I can't find a way to get the URL out of XML and 
>>make it a 
>>sitemap parameter for <map:redirect-to> to use.
>>
>>Can anyone help us both?
>>
>>Thanks,
>>
>>Neil.
>>
>>
>>On Friday, November 8, 2002, at 09:41 AM, Witold Treliñski wrote:
>>
>>    
>>
>>>Hi!
>>>
>>>I have a question. How to make o redirection in XSP from 
>>>      
>>>
>>one page to 
>>    
>>
>>>other
>>>depeneding on some code in <xsp:logic>? I tried 
>>><xsp-response:send-redirect
>>>url="any"/> and it doesn't work.
>>>
>>>WT
>>>
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>    
>>
>>>Please check that your question  has not already been 
>>>      
>>>
>>answered in the
>>    
>>
>>>FAQ before posting.     
>>>      
>>>
>><http://xml.apache.org/cocoon/faq/in> dex.html>
>>    
>>
>>>To 
>>>      
>>>
>>unsubscribe, e-mail:     
>><co...@xml.apache.org>
>>    
>>
>>>For additional commands, e-mail:   
>>>      
>>>
>><co...@xml.apache.org>
>>    
>>
>>>      
>>>
>>---------------------------------------------------------------------
>>Please check that your question  has not already been answered in the
>>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>>
>>To unsubscribe, e-mail:     <co...@xml.apache.org>
>>For additional commands, e-mail:   <co...@xml.apache.org>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in the
>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail:     <co...@xml.apache.org>
>For additional commands, e-mail:   <co...@xml.apache.org>
>
>
>  
>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Redirect in XSP

Posted by Artur Bialecki <ar...@digitalfairway.com>.
Witold,

First of all processing of XSP is done by a Generator
which is part of pipeline *execution*. This means that
it's too late to redirect at that point since some data
might already been sent back to the browser (depends 
on the size of your serializer buffer).

You should only redirect during pipeline *setup*,
before any generators are called.

Assuming you using Cocoon 2.0.x you probably want write
and Action that checks for condition that might cause
redirection and return it as a sitemap parameter
and use <map:redirect-to> before generation of your
XSP.

Witold & Neil

Look at ServerPagesAction.java and action.xsl
in cocoon source.

Artur...


> -----Original Message-----
> From: Neil A [mailto:mylists@neilabraham.co.uk] 
> Sent: November 8, 2002 10:16 AM
> To: cocoon-users@xml.apache.org
> Subject: Re: Redirect in XSP
> 
> 
> Hi all
> 
> I joined the cocoon users list today to ask a very similar question.
> 
> I have a list of external URLs held in XML and I have a pipeline to 
> pick the right one.  I want to use <map:redirect-to> within the 
> sitemap, but I can't find a way to get the URL out of XML and 
> make it a 
> sitemap parameter for <map:redirect-to> to use.
> 
> Can anyone help us both?
> 
> Thanks,
> 
> Neil.
> 
> 
> On Friday, November 8, 2002, at 09:41 AM, Witold Treliñski wrote:
> 
> > Hi!
> >
> > I have a question. How to make o redirection in XSP from 
> one page to 
> > other
> > depeneding on some code in <xsp:logic>? I tried 
> > <xsp-response:send-redirect
> > url="any"/> and it doesn't work.
> >
> > WT
> >
> >
> > 
> ---------------------------------------------------------------------
> > Please check that your question  has not already been 
> answered in the
> > FAQ before posting.     
> <http://xml.apache.org/cocoon/faq/in> dex.html>
> >
> > To 
> unsubscribe, e-mail:     
> <co...@xml.apache.org>
> > For additional commands, e-mail:   
> <co...@xml.apache.org>
> >
> >
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Redirect in XSP

Posted by Neil A <my...@neilabraham.co.uk>.
Hi all

I joined the cocoon users list today to ask a very similar question.

I have a list of external URLs held in XML and I have a pipeline to 
pick the right one.  I want to use <map:redirect-to> within the 
sitemap, but I can't find a way to get the URL out of XML and make it a 
sitemap parameter for <map:redirect-to> to use.

Can anyone help us both?

Thanks,

Neil.


On Friday, November 8, 2002, at 09:41 AM, Witold Treliński wrote:

> Hi!
>
> I have a question. How to make o redirection in XSP from one page to 
> other
> depeneding on some code in <xsp:logic>? I tried 
> <xsp-response:send-redirect
> url="any"/> and it doesn't work.
>
> WT
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>