cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Wielgus <lis...@o2.pl>
Subject Reading and passing parameters in the sitemap
Date Sun, 16 Nov 2003 10:49:07 GMT
Hello,

here a sniplet from my sitemap:

<map:pipeline>
 <map:match pattern="upload/*">
  <map:act type="multipart">
        <map:parameter name="upload-dir"
value="e:/cocoon-2.1.2/build/webapp/LetterMan/grafiken/{1}/"/>
        <map:redirect-to
uri="../main.xsp?dir=grafiken&amp;site=grafiken-upload-ok.xsp"/>
  </map:act>
        <map:redirect-to uri="serverpages"
src="../main.xsp?dir=grafiken&amp;site=grafiken-upload-fail.xsp"/>
 </map:match>
</map:pipeline>

and this is and excerpt from my xsl file where i have the form for
file uploading:

<form action="upload/upload" method="post"
enctype="multipart/form-data">
<table class="list" align="center">
<tr><td class="list" width="500" colspan="2"></td></tr>
<tr><td class="list" colspan="2">Name: <input type="text"
name="gr_name"/></td></tr>
<tr><td class="list" colspan="2">Datei: <input type="file"
name="gr_upload"/></td></tr>
<tr><td class="list" colspan="2"><hr align="center" width="100%"
color="#663300"/></td></tr>
<tr><td class="list"><input type="submit" name="action"
value="Upload"/></td></tr>
</table>
</form>

so, the form action goes to the pipeline which I showed above. Now I
have the following problem: I would like to pass the parameter
"gr_name" to the redirect-uri which is used in the pipeline. How to
do this? Furthermore - I would like to pass the path of the saved
file there, are there any possibilities to do this?

Any help would be appreciated

Regards

Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message