Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How to setup authentication for the Tomcat Application

Reply
Thread Tools

How to setup authentication for the Tomcat Application

 
 
vaidhibtech@gmail.com
Guest
Posts: n/a
 
      08-10-2006
Hi,

I created one tomcat application (using JSP) and start using it. now I
wish to set authentication for that application. for example, if any
user try to access the application, a pop-up window should appear to
authenticate him. How to setup the authentication

Thanks,

Vaidhi

 
Reply With Quote
 
 
 
 
c.prerovsky@gmail.com
Guest
Posts: n/a
 
      08-10-2006
Hi Vaidhi,

assuming you use Tomcat 5.5 you can start by configuring a Realm in you
server.xml as described in:
http://tomcat.apache.org/tomcat-5.5-...ng%20a%20Realm

To keep things simple you may want to use a MemoryRealm, where users
are stored in a simple XML file. Take a look at
http://tomcat.apache.org/tomcat-5.5-...ml#MemoryRealm
to learn how to configure it. Keep in mind that memory realms are not
suggested for production use.

Best regards,
Clemens

 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?Arne_Vajh=F8j?=
Guest
Posts: n/a
 
      08-11-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> I created one tomcat application (using JSP) and start using it. now I
> wish to set authentication for that application. for example, if any
> user try to access the application, a pop-up window should appear to
> authenticate him. How to setup the authentication


You enable security for a web app in its web.xml !

Arne
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Sharing Forms Authentication between application and sub-application =B= ASP .Net Security 3 01-17-2005 02:43 PM
Tomcat Web application manager - Virtual host Tomcat 4.30 + Apache2 + JK2 connector with multi IPs Joe Java 0 07-12-2004 03:06 PM
Application Controlled Authentication - Tomcat & Struts Antoine Diot Java 4 06-05-2004 12:46 AM
Tomcat: problem opening a new window on a form-based authentication application Raul Java 0 02-28-2004 07:39 PM



Advertisments