Hi! Is it possible to write a session-attribute to a database? =============<descriptor.xml>=================== <?xml version="1.0" encoding="UTF-8"?> <root> <connection>safeuser</connection> <table name="users"> <key> <key param="id" dbcol="userid" type="int"/> </key> <values> <value param="<session:get-attribute name="username"/>" dbcol="username" type="string"/> <!-- can't work this way --> <value param="file" dbcol="filename" type="string"/> <value param="file" dbcol="file" type="binary"/> </values> </table> </root> =============</descriptor.xml>===============
=============<sitemap.xmap>================ [...] <map:match pattern="upload"> <map:act type="session-validator"> <map:parameter name="descriptor" value="context://alex/descriptors/params.xml"/> <map:parameter name="validate" value="username,filename"/> <map:generate src="docs/upload.xml"/> <map:transform src="stylesheets/simple-page2html.xsl"/> <map:serialize/> </map:act> <map:redirect-to uri="login"/> </map:match> <map:match pattern="do-upload"> <map:act type="upd-record"> <map:parameter name="descriptor" value="context://alex/image-record.xml"/> </map:act> <map:redirect-to uri="protected"/> </map:match> [...] ==============</sitemap.xmap>================ Thank you, Alex. --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>