Setting up a secure area

2006-03-12 Thread Mark Whitby
Hey all This is probably one of the stupidest posts of the week on here but I'm struggling to find the link online that tells me how to use a Realm to restrict access to a certain folder: /secure/. I've set up the realm as stated (http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html),

Re: Setting up a secure area

2006-03-12 Thread Mark Lowe
On 3/12/06, Mark Whitby [EMAIL PROTECTED] wrote: Hey all This is probably one of the stupidest posts of the week on here but I'm struggling to find the link online that tells me how to use a Realm to restrict access to a certain folder: /secure/. I've set up the realm as stated

Re: Setting up a secure area

2006-03-12 Thread Mark Whitby
Subject: Re: Setting up a secure area Assuming you're realm login works, all you need to do it configure the web.xml in your web application to restrict access unless the user has a given role. The example below restricts access to any request (url-pattren) to any user that doesn't have the role