In line 7 the context still has not changed, your passing a parameter *to* the action, but your still have not changed *the context to* the action. While in line 8 context has changed.
Regards, Joerg [EMAIL PROTECTED] wrote: > Thank you Matthew, but could you explain why!? > > Is the line 7. <map:parameter name="url" value="download/{file}"/> is correct? > > Thank you > Sylvain > > -----Message d'origine----- > De: Matthew Langham [mailto:[EMAIL PROTECTED]] > Date: jeudi, 10. octobre 2002 11:17 > À: [EMAIL PROTECTED] > Objet: RE: example in the Cocoon book > > > Hi, > > guess what - this is a bug in the book :). > > > 8. <map:read src="download/{file}"/> > << > > That line should read: > > <map:read src="download/{../file}"/> > > Matthew > > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 10, 2002 10:05 AM > To: [EMAIL PROTECTED] > Subject: example in the Cocoon book > > > Hello, > > I'm reading the Cocoon book written by Matthew and Carsten and one example > in it doesn't work. > > The pipeline fragment is: > > 1. <map:pipeline> > 2. <map:match pattern="download"> > 3. <map:act type="request"> > 4. <map:parameter name="parameters" value="true"/> > 6. <map:act type="resource-exists"> > 7. <map:parameter name="url" value="download/{file}"/> > 8. <map:read src="download/{file}"/> > 9. </map:act> > 10. <map:generate src="filenotfound.xml"/> > 11. <map:transform src="filenotfound2html.xsl"/> > 12. <map:serialize/> > 13. </map:act> > 14. </map:match> > 15.</map:pipeline> > > All seem to work except the line 8. > Cocoon detect that the {file} exists (line 7) but it can't read it (line 8). > It returns a HTTP error 404 (file not found). > > Anyone has an idea? > How to check (debug) the value {file}? > > Thank you > Sylvain -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de VIRBUS hat jetzt als erster deutscher Softwarehersteller die Zertifizierung für den 3D Secure-Authentifizierungsstandard "Verified by Visa" erhalten. Details unter http://www.virbus.de/de/press/pressemitteilung/20020828_verified_by_VISA. --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>