J.D. Williams wrote:
I have been using the DatabaseAuthenticatorAction, but now need to
switch to the Authentication Framework, using a database as the
authentication resource.

In my authentication resource, the following works:

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

but this does not:

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

You would need request-param:username instead of request:param:username. (Note the dash.)


I can also hard-code the username by appending '?username=example' to
the url. The login page works, so why is the username parameter not
being passed properly?


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



--
Andre H. Juffer              | Phone: +358-8-553 1161
The Biocenter and            | Fax: +358-8-553-1141
    the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/
NordProt                     | WWW: www.nordprot.org

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

Reply via email to