You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by zhicheng wang <wa...@yahoo.co.uk> on 2004/08/20 15:00:05 UTC
how to set up Valve for a directory
Dear all
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.
any help is highly appreciated.
thanks
cheng
=====
Best wishes
Z C Wang
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: how to set up Valve for a directory
Posted by QM <qm...@brandxdev.net>.
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org