cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans <>
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 =;
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"/>
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?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message