cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject User Authentication?
Date Wed, 18 Dec 2002 13:17:55 GMT

I'm having a hard time understanding the tutorial on authentication from
the coccon website.
My case:
I have a loginpage (login) with a field for user and password. If the user
is logged in successfully, he should be redirected to services, which is
My questions:
How / Where do I check the parameters, if I wanna check the parameters with
entries in a database.

If I try to access the page services now directly, I get the following
error message:

 notifies that org.apache.avalon.framework.component.ComponentException
UnnamedSelector: ComponentSelector could not find the component for hint
More precisely:
org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
ComponentSelector could not find the component for hint [auth-protect]

Here is my sitemap:

      <map:matchers default="wildcard"/>
      <!-- =========================== Pipelines
================================= -->
                                          <handler name="userPortal">
                                                <redirect-to uri="login"/>
                                                <authentication uri
                  <map:match pattern="login">
                        <map:generate type="xsp" src="login.xsp"/>
                  <map:match pattern="userLogin">
                        <map:act type="auth-login">
                              <map:parameter name="handler" value
                              <map:parameter name="parameter_userid" value
                              <map:parameter name="parameter_password"
                              <map:redirect-to uri="services"/>
                        <!-- authentication failed: Back to login-page -->
                        <map:generate type="xsp" src="login.xsp"/>
                  <map:match pattern="services">
                        <map:act type="auth-protect">
                              <map:parameter name="handler" value
                              <map:generate type="xsp" src="services.xsp"/>



This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.

Please check that your question  has not already been answered in the
FAQ before posting.     <>

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

View raw message