Andrzej,
I'm just getting this to work myself... Have you taken a look at the modular db samples in 2.1? You'll have to pick your way through the sample; there is a lot going on there.


Also this doc shows a one liner about doing what you describe:

http://cocoon.apache.org/2.1/userdocs/actions/database-actions.html

Specifically:
  <table name="user_groups">
     <keys>
        <key name="uid" type="int">
           <mode name="request" type="request">
              <parameter>user_groups.uid</parameter>
           </mode>
           <mode name="attribute" type="attrib">
<parameter>org.apache.cocoon.components.modules.output.OutputModule:user.uid[0]</parameter>
           </mode>
        </key>
        <key name="gid" type="int" set="master">
           <mode name="request" type="all">
              <parameter>user_groups.gid</parameter>
           </mode>
        </key>
     </keys>
  </table>

An important thing to know is that the mode name corresponds to the input module name in the cocoon.xconf file. So with the latest 2.1 code you'd want to substitute <mode name="request-attr" above. The mode type can be set to "all" to make it work in all cases. What the above does is allow the request to contain the attribute user.uid (the modules always return a list - so if there is always one field you need index 0) to database field uid in table user_groups.

Unfortunately, that's about all I can help with...
HTH,
Steve

Is there any action/module/component that can take a sax stream in a pipeline
and save it in a request attribute as an XML text string?


I think I've figured out how to get modular database actions to work....but
somehow need to take the output of a pipeline and store it in a request
attribute or otherwise make it available to a database insert/add action.

Any hints on how to accomplish this?

thanks!

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Surf and talk on the phone at the same time with broadband Internet access. Get high-speed for as low as $29.95/month (depending on the local service providers in your area). https://broadband.msn.com



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to