cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Katzigas Dimitris" ...@mylonas.gr>
Subject Re: xsp problem with authentication context
Date Wed, 02 Oct 2002 11:29:49 GMT
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" <atlanoff@mail.ru>
To: "Katzigas Dimitris" <cocoon-users@xml.apache.org>
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:atlanoff@mail.ru
>
>
>
> ---------------------------------------------------------------------
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message