No that is not the point.  I know that you can enforce login to all resources
but what if you want the following to happen -

A user enters a URL and goes to a home page which has an optional login
form.  If you type in your username and password you will be logged in.
Otherwise you can just go to other pages.  How would you write a servlet to
access the authentication services of the servlet container in a standard
way?

dan

Assaf Arkin wrote:

> > The spec will handle the case where you don't want to require login
> > until the user wants to access a protected resource.  But what if you
> > want the user to login before accessing a protected resource?  Looks
> > like that Servlet will have to be written in a container dependent
> > way. But it would be nice if there were a standard way to do that.
>
> Once again look hard into the Servlet 2.2 specs. You will find a way to
> enforce login across the entire Web site (all resources).
>
> arkin
>
> >
> > >
> > > Cheers,
> > > Laird
> > >
> > > =====
> > > =====================================================================
> > >
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in
> > > the body
> > > of the message "signoff EJB-INTEREST".  For general help, send email
> > > to
> > > [EMAIL PROTECTED] and include in the body of the message "help".
>
> --
> ----------------------------------------------------------------------
> Assaf Arkin                                           www.exoffice.com
> CTO, Exoffice Technologies, Inc.                        www.exolab.org

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to