cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24389] - [PATCH] New ResourceLoadAction
Date Wed, 12 Nov 2003 19:55:50 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24389>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24389

[PATCH] New ResourceLoadAction





------- Additional Comments From andrzej@chaeron.com  2003-11-12 19:55 -------
I've updated the ResourceLoadAction so that it optionally will save the resource 
stream data (as a string) in your session/request with a given attribute name.

The optional write-to and attribute-name parameters, if specified, will cause 
the ResourceLoadAction do the save.  write-to can be either session or request 
(session is default). Your choice of attribute name.

So an invocation in your pipeline would look something like this:

<map:act type="resource-load" src="cocoon:/my.pipeline>
				<map:parameter name="write-to" value="request"/>
				<map:parameter name="attribute-name" value="my.output"/>
   
   ...
<map:act>

This becomes very useful if you have a pipeline that produces a document that 
you then want to save into a database column using a Modular Database Action.  
By allowing you to store the resource stream as a string in your 
session/request, you can get access to it from the Database Action.  I use this 
to save XML documents into a database.

Enjoy!

....Andrzej

PS. New v1.1 source attached to the bug.

Mime
View raw message