cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Juffer <Andre.Juf...@oulu.fi>
Subject Re: Authentication Framework and database
Date Tue, 27 Feb 2007 15:14:00 GMT
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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 


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

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


Mime
View raw message