How do I configure JAAS for use with servlets?

There is no need for any special configuration for JAAS to be used with the Tomcat server.
Make the settings as we do to execute an application program, i.e.,
changing the java.security,java.policy file in the jre/lib/security of the jdk1.3.