ok

How can I define a very simple pipeline that gets the initial URI and
present a simple HTML file?

For example:

in the cocoon directory I define the following subdirectory:

        myApplication

and I put into this directory the following html file:

        myfile.html

Now, I want that cocoon display this html file in the browser every time
that a user access to it.
This is (I think) the more stupid pipeline supported by cocoon.

Then, if I define the following sitemap.xmap:

....
....
....
<map:pipeline>
        <map:match pattern="">
            <map:redirect-to uri="myApplication/myfile.html"/>
        </map:match>
</map:pipeline>
....
....
....


Is this correct?
I think no, but I don't why.

Thanks.








----- Original Message -----
From: "Olivier Rossel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 3:19 PM
Subject: Re: Sitemap question


> Stefano Bonnin wrote:
>
> >Hi, I have a simple question about cocoon 2 sitemap:
> >
> >I defined a simple pipeline for my personal application.
> >
> >When I try to run the web application Tomcat return me the following
error:
> >
> >
> >**************
> >Apache Tomcat/4.0.1 - HTTP Status 404 - Not Found
> >
>
>---------------------------------------------------------------------------
-
> >----
> >
> >type Status report
> >
> >message Not Found
> >
> >description The requested resource (Not Found) is not available.
> >****************
> >
> >Something in my sitemap.xman doesn't work, but what? Where can I see in
more
> >detail this error?
> >
> >Thanks.
> >
> There is no "error".
> Just that the sitemap was completely parsed and no match between your
> URL and a pipeline match pattern could be found.
> You should have a look at the match="..." of your sitemap that should
> have responsed to your URL.
> The sitemap receives not the full URL but only the substring that is
> after the context name in the URL.
>
> Hope it helps.
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


---
Outgoing mail is certified Virus Free. (CopyRight FLASHH!)
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.325 / Virus Database: 182 - Release Date: 19/02/02


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

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

Reply via email to