If you really stick to tomcat, then it might be useful for you http://www.webweavertech.com/costin/archives/000421.html