In my first response, I didn't read the entire message.  However, what I
have demonstrates login security, as implemented by a central "login"
page, with other pages implementing the security restriction.  These
examples do not include the creation of new users.

Here is the central "login manager":
http://www.aptura.com/technology/adminLogin2.txt
and here is a page that extends it and uses the login to restrict access:
http://www.aptura.com/technology/extendsTest.txt

I placed them out there as opposed to attaching the files.  Obviously,
save them as .jsp files on your system.  You will need to access
adminLogin2.jsp first to compile it.  A major problem (at least for JRun)
with doing "extends" is that only compiled jsp in the same directory  can
be extended.  You could import adminLogin2 instead and call the "security"
method in a static context.  This allows adminLogin2 to reside in a
directory seperate from where it is being used.

Lance Lavandowska
Software Engineer
http://www.Aptura.Com

-----Original Message-----
From: Lageson, Tom <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, June 04, 1999 11:13 AM
Subject: Login and Security Servlet Example


>Does anyone know of a login/security example servlet?  Basically, from a
>login html form, verify login or allow creation of a new user to login.
>
>Thanks for your help.
>
>Tom Lageson
>[EMAIL PROTECTED]
>http://www.tennantco.com
>
>
>> ----------
>> From:         Michael Nash[SMTP:[EMAIL PROTECTED]]
>> Reply To:     A mailing list for discussion about Sun Microsystem's
Java
>> Servlet API Technology.
>> Sent:         Friday, June 04, 1999 10:25 AM
>> To:   [EMAIL PROTECTED]
>> Subject:      Re: Java Daemons/Services
>>
>> Galen:
>>
>> I've done something similar by using and autologin and a startup batch
>> file
>> on NT - this logs the server in to a specific user and starts up my
>> services
>> as soon as the login happens. Also, I've experimented with the utility
>> that
>> comes with the NT resource kit that allows you to turn any program into
a
>> service - we preferred not to use it as it was harder to monitor the
>> service, but it might do the trick for you.
>>
>> Drop me a line off-list if you want any example batch files/details.
>>
>> Mike Nash
>> JavaCorporate Ltd: Java Components for the Corporate Intranet
>> http://www.javacorporate.com
>>
>>
>> -----Original Message-----
>> From: Galen Wilkerson [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, June 04, 1999 10:42 AM
>> To: [EMAIL PROTECTED]
>> Subject: Java Daemons/Services
>>
>>
>> Hi,
>>
>> I am interested in running a Java daemon/service every few minutes.  I
>> would like this to start up automatically upon booting my windows NT
>> box.
>>
>> I imagine it can be done as a servlet called every few minutes by a
>> webserver,
>> but I am wondering how to do it as a standalone service.
>>
>> Does anyone have ideas about this?
>>
>> thank you for any information,
>>
>> Galen
>>
>>
__________________________________________________________________________
>> _
>> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>> body
>> of the message "signoff SERVLET-INTEREST".
>>
>> Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> Resources: http://java.sun.com/products/servlet/external-resources.html
>> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>>
__________________________________________________________________________
>> _
>> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>> body
>> of the message "signoff SERVLET-INTEREST".
>>
>> Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> Resources: http://java.sun.com/products/servlet/external-resources.html
>> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>
>_________________________________________________________________________
__
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to