title: How to protect a servlet from external users?
body: <p>I have tried to use security-constraint in web.xml. I gave permission to admin by using role. How to test whether the servlet is secured and be able to access only by the admin?</p>