On Tue, 3 Apr 2001 [EMAIL PROTECTED] wrote:
> The other thing is the security. I would like to restrict the access to ONE
> of the two servlets to a couple of IP addresses. Does Tomcat offer a
> possibility for that ? I saw that by modifying the tomcat.policy file I can do IP
> filtering, but that concerns all the servlets !?
You could compare the String result of request.getRemoteAddr() to the IP
addresses you want to restrict to on the doGet() or doPost() methods of
your servlet. The addresses could be specified in the servlet's properties
in web.xml
Kevin