From: <km...@we...> - 2005-08-05 11:08:18
|
Try let $login :=3D request:request-parameter("login", "") cast as = xs:string, $password :=3D request:request-parameter("password", "") cast as = xs:string in xql file. This should work. In my environment, which is very similar = to yours, it works like this. Kai > -----Original Message----- > From: exi...@li... > [mailto:exi...@li...]On Behalf Of Aur=E9lien > DEHAY > Sent: Friday, August 05, 2005 12:53 PM > To: exi...@li... > Subject: [Exist-open] Exist & cocoon auth-fw >=20 >=20 > Hello. I've sent the following mail to cocoon-user mailing list with = no=20 > success. >=20 > Maybe here I will find someone using this? >=20 > I'm trying to use a xql file with the eXist 1.0b2=20 > org.exist.cocoon.XQueryGenerator with the auth-fw. I've got: > <authentication uri=3D"cocoon:raw:/login-authenticate"/> in the=20 > handler conf. >=20 > The login-authenticate is: > <map:match pattern=3D"login-authenticate"> > <map:generate type=3D"xquery" = src=3D"login/authenticate.xql"> > </map:generate> > <map:transform type=3D"log"> > <map:parameter name=3D"logfile" value=3D"logfile.log"/> > <map:parameter name=3D"append" value=3D"yes"/> > </map:transform> > <map:serialize type=3D"xml"/> > </map:match> >=20 > How can I retrieve the parameter_login & parameter_password in the xql = > file? eXist documentation says that request parameters are bound as = XQL=20 > variables, that's right when I call login-authenticate directly, but=20 > thru the auth-fw it's doesn't work. >=20 > Does anyone knows the trick to use xql with auth-fw? >=20 > Regards. >=20 > --=20 > Aur=E9lien >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing = & QA > Security * Process Improvement & Measurement * = http://www.sqe.com/bsce5sf > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open |