ok, now I have taken the original sitemap file given with Cocoon, I have substituted the original map:pipeline with this:
<map:pipeline> <map:match pattern=""> <map:redirect-to uri="myAppplication/myfile.html"/> <map:match> <map:match pattern="myApplication/*.html"> <map:generate src="myApplication/{1}.html"/> <map:serialize type="html"/> </map:pipeline> I have restarted tomcat and .... the same "error" is returned: ************* 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. ************** Thanks for your help. ----- Original Message ----- From: "Bertrand Delacretaz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 04, 2002 4:10 PM Subject: Re: Sitemap question > On Monday 04 March 2002 15:55, Stefano Bonnin wrote: > > How can I define a very simple pipeline that gets the initial URI and > > present a simple HTML file? > . . . > > <map:pipeline> > > <map:match pattern=""> > > <map:redirect-to uri="myApplication/myfile.html"/> > > </map:match> > > </map:pipeline> > > That's only the beginning, it will redirect the / URL to > myApplication/myfile.html. > > Then, the redirect causes the client (browser) to make another request > to myApplication/myfile.html, which your sitemap must process. > > Here's one way of doing it: > > <map:match pattern="myApplication/*.html"> > <map:generate src="myApplication/{1}.html"/> > <map:serialize type="html"/> > </map:match> > > Hope this helps! > > -- > Bertrand Delacrétaz (codeconsult.ch, jfor.org) > > buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding. > disclaimer: eternity is very long. mostly towards the end. get ready. > > > > > > > --------------------------------------------------------------------- > 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]>