On Oct 4, 2004, at 8:51 AM, Jonathan Linczak wrote:

Hi all,

First time using a selector (don't laugh!) and I wrote a simple pipeline that changes based on the parameter matched:

<map:pipeline>
<map:match pattern="**/*/*/teamstats.html">
<map:select type="parameter">
<map:parameter name="parameter-selector-test" value="{2}"/>
<map:when test="menssports">
<map:read mime-type="text/html" src="content/authoring/stats/m-{3}/teamstats.htm"/>
</map:when>
<map:when test="womenssports">
<map:read mime-type="text/html" src="content/authoring/stats/w-{3}/teamstats.htm"/>
</map:when>
</map:select>
</map:match>
</map:pipeline>


When I go to the page: http://www.someplace.com:8080/lenya/athletics/authoring/menssports/ football/teamstats.html

I get the following error:

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.cocoon.ProcessingException: Streaming of an internal pipeline is not possible with a reader.

You might try using a generator+serializer instead of a reader. Replace the reader with a generator, and put the serializer right after the selector.

Mark, I'm a bit confused in that I don't really need to generate or serialize since I just want to read in the file that was pre-generated by another application. I thought it would make my life easier if I threw the documents into Apache's document root instead, and then replaced the <map:read> tags with <map:redirect-to> tags, but not I get the following error:


org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.io.IOException

Very strange...  should I not even be doing this?

Jon


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to