Shamelss plug: My Java Web Parts project
(http://javawebparts.sourceforge.net) will have this capability,
hopefully by this weekend, via its AccessControlFilter. It's now
probably 50% written and in CVS, but I have to complete the IP-based
limiting (I got side-tracked a bit and went off and did some other
things... typical!).
Frank
Ben Souther wrote:
You could put the restricted directories under WEB-INF and then use a
Front Controller Servlet to forward to or stream the files to the
browser.
On Tue, 2005-07-12 at 09:27, Clark Slater wrote:
Hello-
I am running 5.0.19
Is there a way to restrict access to files in a directory based on a value in
an HttpSession?
For example:
Customer c = (Customer) httpSession.getValue("Customer");
if (c.getCountryCode().equals("CAN"))
their browser could display any HTML file in
/webapps/ecat/profiles/canada
but not files in
/webapps/ecat/profiles/usa
Of course, files in either of these directories
would not be viewable by the outside world.
Thanks!
Clark
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]