在web.xml里设置:
(我的在D:/Program Files/Apache Group/Tomcat 5.0.7/server/webapps/manager/WEB-INF/web.xml)
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method> <!--支持BASIC,DIGEST,FORM -->
<realm-name>Tomcat Manager Application</realm-name>
</login-config>
或者:
自己写代码实现,可以看看我的笔记,或许有帮助
http://www.delphibbs.com/keylife/iblog_show.asp?xid=913