I' am sorry but the action stuff doesn't say anything to me.
I have little experience on them.
I invested too much time to the authentication framework and i don't wont to
waste it.
----- Original Message -----
From: "Atlanoff" <[EMAIL PROTECTED]>
To: "Katzigas Dimitris" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 2:06 PM
Subject: Re: xsp problem with authentication context
> Hello Dimitris,
> --
> How about another way to authorize via actions:
>
> ///login-action
> ....
> login = (String)request.getParameter("login");
> password = (String)request.getParameter("password");
> String sql = "begin loginproc('" + login + "', '" + password + "');
end;";
> ...
> //my static method to execute SQL inside current session
> DBUtils.runSQL(session, sql);
> ....
> if(...) return newSiteMap;
> else return null;
> ...
> ///sitemap fragment
> <map:match pattern="enter.html">
> <map:act type="login">
> <map:redirect-to uri="main.html"/>
> </map:act>
> <map:redirect-to uri="error.html"/>
> </map:match>
>
> --
> Best regards,
> ���� mailto:[EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>