Ok. I did some studying, and solved the problem. The <parameter> element's
content is used for reading, not writing. The databaseAddAction writes the
request attributes automatically. It works now.

-Tuomo

On Wed, 24 Mar 2004, Derek Hohls wrote:

> Tuomo
>
> I do not use the db add-on so this may be a useless
> observation... but are you sure your DB supports entries
> in the ddMMyyyyHHmmssSSS format - mySQL, for
> example, expects yyyy-mm-dd in a  _date_  field.
>
> Derek
>
> >>> [EMAIL PROTECTED] 2004/03/24 02:26:48 PM >>>
> Hi,
>
> I need to "generate" an id from the current time, when adding a record
> to
> database using the modular database-add-action. Then I need to pass
> this
> id to the sitemap. I tried this, but it generates null in the db:
>
> <value name="session_id" type="string">
>   <mode name="request-attr" type="all">
>       
> <parameter>org.apache.cocoon.components.modules.output.OutputModule:session-id</parameter>
>       <input-module name="date"
> format="ddMMyyyyHHmmssSSS"></input-module>
>   </mode>
> </value>
>
> What's the prob?
>
> -Tuomo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> MailScanner thanks transtec Computers for their support.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to