On Fri, Aug 20, 2004 at 02:00:05PM +0100, zhicheng wang wrote: : i need to protect a subdirectory and a serlet by : resticting the requesting IP. I can use Valve to : control the whole site, a context. but do not know how : to do this to a subdirectory and a servlet.
You don't say what Tomcat version you're running, but if it's 4.1 or later you can take advantage of a "servlet filter" (quoted for easy Googling). They're part of the servlet spec, which makes them portable. Depending on what you're doing, you may even be able to replace that Valve with a filter. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
