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]
--
Ben Souther
F.W. Davison & Co.
CONFIDENTIALITY NOTICE:
This e-mail message, and any accompanying documents, is for the sole use
of
the intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure, distribution or
copying is prohibited. If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]