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