Hi..
>From where do you get the sitemap variables {1} and {2}?
The containing stite map has the match pattern <map:match
pattern="*/*/*.xml">
the site map variables are accessable in the handle-errors block are they
not?
Also the error i get has the file name of the original missing file not the
name of the file in the handle-errors block. This indicates to me that the
handle-errors block is not executing at all rather than failing?
I just tried puting a full path "site/repository/welcome.xml" instead of the
{1}/{2}/welcome.xml and that didnt work either... so?????
Thanks Again...
-Dave
-----Original Message-----
From: Stephan Coboos [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 2:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Using <map:handle-errors>
----- Original Message -----
From: "David Rogers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 17, 2003 12:04 AM
Subject: RE: Using <map:handle-errors>
>
> Hmm..thanks. still having trouble..
>
> I am using a sub site map.
> I see the main site map has the selector declaration already....
>
> <map:selector logger="sitemap.selector.exception" name="exception"
> src="org.apache.cocoon.selection.ExceptionSelector">
> <exception class="org.apache.cocoon.ResourceNotFoundException"
> name="not-found"/>
> <exception
> class="org.apache.cocoon.components.flow.InvalidContinuationException"
> name="invalid-continuation"/>
> <!-- The statement below tells the selector to unroll as much
> exceptions as possible -->
> <exception class="java.lang.Throwable" unroll="true"/>
> </map:selector>
>
>
> But when i try to refrence it using:
>
> <map:handle-errors>
> <map:select type="exception">
> <map:when test="not-found">
> <map:generate src="{1}/{2}/welcome.xml"/>
> <!--map:generate src="{1}/xhtml/filenotfound.xhtml"/-->
> <map:serialize type="xml"/>
> </map:when>
> </map:select>
> </map:handle-errors>
>
> I still get the main erorr page with this...
>
> java.lang.RuntimeException: java.lang.RuntimeException:
> java.lang.RuntimeException: org.apache.cocoon.ProcessingException: Failed
to
> execute pipeline.: java.lang.RuntimeException: java.lang.RuntimeException:
> java.lang.RuntimeException: java.lang.RuntimeException:
> org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> org.apache.excalibur.source.SourceNotFoundException:
>
file:/C:/eclipse/workspace/MetaWorks/sites/doingatkins.com/repository/cautio
> nn.xml doesn't exist.
>
>
> almost there...
> Thanks,
> Dave
>
>
>
>From where do you get the sitemap variables {1} and {2}?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]