cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Kröpfl <>
Subject authentication fw and jx
Date Tue, 19 Apr 2005 14:43:48 GMT

I am trying to do authentication against a database using the auth.fw. of cocoon
like this.

Is it possible to use the auth.fw and flow and jx like this?

<map:match pattern="authenticate">
 <map:call function="login" />
 <map:generate src="pages/jx/login.jx" />
 <map:transform type="jx" />
 <map:transform src="xsl/authenticate.xsl">
  <map:parameter name="use-request-parameters" value="true"/>
 <map:serialize />


function login()
  // do some db stuff here.
  // if everything OK save user_id to session
  cocoon.session.setAttribute("ID", "guest");

If I comment out "<map:call function="login">" and use "cocoon" as username
everything works fine. If I call the function login it seems that the rest of
the matcher is not executed.

thanks, peter

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message