cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.D. Williams" <jdwilli...@austin.rr.com>
Subject Re: Authentication Framework and database
Date Tue, 27 Feb 2007 15:56:27 GMT
Nice catch on the ":" instead of "-"

Unfortunately, it did not work.

Tried your other suggestions, as well, and others, too. Any clue on
where I might look or how I might determine where the problem is?

Here is the authentication matcher.

       <map:match pattern="authenticate">
       <map:generate src="docs/sql-page.xml"/>
       <map:transform type="sql">
          <map:parameter name="use-connection" value="sandbox"/>
          <map:parameter name="show-nr-of-rows" value="true"/>
          <map:parameter name="username"
value="{request-param:username}"/>
        </map:transform>
        <map:transform src="stylesheets/sql2html.xsl">
          <map:parameter name="servletPath"
value="{request:servletPath}"/>
          <map:parameter name="sitemapURI"
value="{request:sitemapURI}"/>
          <map:parameter name="contextPath"
value="{request:contextPath}"/>
          <map:parameter name="file" value=".xml"/>
        </map:transform>
        <map:serialize type="xml"/>
      </map:match>

And here is the query from sql-page.xml

    <sql:execute-query xmlns:sql="http://apache.org/cocoon/SQL/2.0">
      <sql:query>select name from user where name =
'<sql:substitute-value name="username"/>'</sql:query>
    </sql:execute-query>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message