Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

How to setup authentication for the Tomcat Application

Thread view: 
vaidhibtech@gmail.com - 10 Aug 2006 12:57 GMT
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
c.prerovsky@gmail.com - 10 Aug 2006 14:34 GMT
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-doc/realm-howto.html#Configuring%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-doc/realm-howto.html#MemoryRealm
to learn how to configure it. Keep in mind that memory realms are not
suggested for production use.

Best regards,
Clemens
Arne Vajhøj - 11 Aug 2006 02:31 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.