cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Kruth" <>
Subject Session attribute -> database
Date Thu, 28 Mar 2002 09:22:46 GMT
Is it possible to write a session-attribute to a database?

<?xml version="1.0" encoding="UTF-8"?>
  <table name="users">
      <key param="id" dbcol="userid" type="int"/>
      <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"/>

      <map:match pattern="upload">
        <map:act type="session-validator">
          <map:parameter name="descriptor"
          <map:parameter name="validate" value="username,filename"/>
          <map:generate src="docs/upload.xml"/>
          <map:transform src="stylesheets/simple-page2html.xsl"/>
        <map:redirect-to uri="login"/>

      <map:match pattern="do-upload">
        <map:act type="upd-record">
          <map:parameter name="descriptor"
        <map:redirect-to uri="protected"/>

Thank you,

Please check that your question has not already been answered in the
FAQ before posting. <>

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

View raw message