cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Larson" <Tdlar...@ci.canton.oh.us>
Subject use SourceWritingTransformer with redirect?
Date Thu, 12 Dec 2002 19:59:01 GMT
What can I do in a Cocoon sitemap to send a redirect if
I also need to execute a pipeline to produce a side-effect?

Specifically, I am trying to respond to a POST by writing
a file to disk and redirecting back to the page that caused
the POST.  The redirect is to drop the POST information
so page refreshes will work normally without causing
additional POST's.

Here is the working pipeline that writes a file to disk:

  <map:generate src="some-xml-file"/>
  <map:transform src="some-xsl-file"/>
  <map:transform type="SourceWritingTransformer"/>
  <map:serialize/>

Here is the working redirect:

  <map:redirect-to uri="some-uri"/>

Anybody know how to combine them so they both happen
in response to the same request?

Thanks,
Tim



---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message