On 10.10.2008, at 12:57, Derek Hohls wrote:
I have:
<map:selector name="exception"
src="org.apache.cocoon.selection.ExceptionSelector">
<exception name="not-found"
class="org.apache.cocoon.ResourceNotFoundException"/>
<exception name="file-not-found"
class="java.io.FileNotFoundException"/>
</map:selector>
...
(after the last pipeline)
...
<map:handle-errors>
<map:select type="exception">
<map:when test="not-found">
<map:generate type="file" src="docs/missing.xml"/>
<map:call resource="simple-page2html" status-code="404"/>
</map:when>
<map:when test="file-not-found">
<map:generate type="file" src="docs/missingfile.xml"/>
<map:call resource="simple-page2html" status-code="404"/>
</map:when>
</map:select>
</map:handle-errors>
Which does not seem to work ie. still get same error page below?
It looks correct to me. The Cocoon 2.1.11 samples [1] provide a
working sample which uses the XPathExceptionSelector [2]. Hopefully
that helps.
Alex
[1]
http://cocoon.zones.apache.org/demos/release/samples/errorhandling/exception/notFound
[2]
http://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.1/RELEASE_2_1_11/src/webapp/samples/errorhandling/sitemap.xmap
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]