You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Manuel Mata <ma...@yahoo.es> on 2003/11/14 18:17:57 UTC
A little problem with DatabaseAuthenticatorAction
Hi. I'm dealing with Actions now and this doesn't
work. I have on my sitemap.xmap defined this action:
<map:actions>
<map:action name="db-auth"
src="org.apache.cocoon.acting.DatabaseAuthenticatorAction"/>
</map:actions>
and this pipeline:
<map:match pattern="login">
<map:act type="db-auth">
<map:parameter name="descriptor"
value="context://content/defs/auth-def.xml"/>
<map:redirect-to uri="admin"/>
</map:act>
<map:redirect-to uri="login.html"/>
</map:match>
The descriptor file is:
<?xml version="1.0"?>
<auth-descriptor>
<connection>abc</connection>
<table name="Customers">
<select dbcol="CustUserId" request-param="user"
to-session="user"/>
<select dbcol="CustPass" request-param="pass"/>
</table>
</auth-descriptor>
So the 'login' URI is the value of the 'action'
attribute of the form to authenticate users.
It doesn't work. Did i forgot something ? I search on
the mail-list and on the Cocooon2 docs and i cant find
anything. Plz help.
Thx.
___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: A little problem with DatabaseAuthenticatorAction
Posted by Manuel Mata <ma...@yahoo.es>.
I forgot the error i get is:
message UnnamedSelector: ComponentSelector could not
find the component for hint [db-auth]
description
org.apache.avalon.framework.component.ComponentException:
UnnamedSelector: ComponentSelector could not find the
component for hint [db-auth]
sender org.apache.cocoon.servlet.CocoonServlet
Thx again.
___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org