You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by st...@outerthought.org on 2004/02/12 00:00:23 UTC
[WIKI-UPDATE] FileUploadsWithFlow Thu Feb 12 00:00:22 2004
Page: http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadsWithFlow , version: 15 on Wed Feb 11 23:05:14 2004 by MarkLundquist
- Then write the flow function:
+ Then write the flow function, let's call it 'upload.js':
- sendPage("success.html");
+ cocoon.sendPage("success.html");
? +++++++
- sendPage("failure.html");
+ cocoon.sendPage("failure.html");
? +++++++
+
+ ...and register it in the sitemap:
+ {{{
+ <map:flow language="javascript" />
+ <map:script src="upload.js" />
+ </map:flow>
+ }}}
+
- Finally, change the <cocoon> element in WEB-INF/cocoon.xconf to read:
? ^^ ^^^^^
+ ...and change the <cocoon> element in WEB-INF/cocoon.xconf to read:
? ^^^^ ^
+
+ Finally, set the __enable-uploads__ parameter in WEB-INF/web.xml to __true__ (this is already done for you if you built Cocoon with 'cocoon.enable-uploads=true' in build.properties or local.build.properties).