use security constaints in your deployment descriptor with a SimpleRealm or JDBCRealm:

<security-constraint>
<web-resource-collection>
<web-resource-name>Some Realm</web-resource-name> 
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>Admin</role-name> 
</auth-constraint>
</security-constraint>

<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Some Realm</realm-name>
</login-config>

--- Tim Kang <[EMAIL PROTECTED]> wrote:
> I was wondering if anybody knows how to password protect a directory in
> Tomcat environment
> 
> Please let me know
> 
> Thanks
> 
> Tim
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

Reply via email to