tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Mohrig <>
Subject RE: Protecting Resources
Date Mon, 23 Sep 2002 08:16:03 GMT
In your web.xml (after the servlet-mappings) you can define one or more
security constraints like this:


All you have to do then is put everything you want to protect into some
subdirectory (e.g. "secure"). Although this does not seem to be strictly
necessary with tomcat, you might want to define the role as well (further
down in your web.xml):


Hope that helps.

Andreas Mohrig

-----Original Message-----
From: ed banfa []
Sent: Monday, September 23, 2002 9:39 AM
Subject: Protecting Resources

Goodday to u all,

Ok I would like to restrict access to certain resources will allow access to
others, eg

I would likw to allow access to the url http://localhost:8080 which inshort
will allow access to  index.html and only that.i would like to disallow
access to other resources in the site to only authenticated user's.

My problem is that how do I specify how to access only the index page, and
restrict others resources my deployment discriptors

I would appreciate any form of help offered 

Thank u


Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message