cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans <Jorg.Heym...@12snap.com>
Subject insert request parameter from action
Date Thu, 04 Sep 2003 08:28:31 GMT
I have an action to deal with fileuploads
...
getLogger().debug("attached file found -> " + parameterName);
FilePart filePart = (FilePart) request.get(parameterName);
File file = ((FilePartFile) filePart).getFile();
DiskStore ds = new DiskStore();
String id = ds.store(file);
request.setAttribute("newfilename", id);
getLogger().debug("saved as reference " + id);
...
 
sitemap is 
<map:match pattern="upload">
<map:act type="upload-files"/>
<map:generate type="request"/>
<map:serialize type="xml"/>
</map:match>
 
why is the requestattribute parameter "newfilename" set in the action not
visible in the output? Is the requestgenerator not picking up the changed
request object then? Or maybe there is another way to change to request
object before the generator picks it up
 
Any thoughts?
Jorg

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


Mime
View raw message