No, you would need to do this via a programmtic authorization.
There is no declaritive way to do this.
-Tim
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)
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
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
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
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
Hello everyone,
I have a file in 1 of the directories - from where 1 of the files in the same
directory is reading it - the directory being inside webapp/testApp directory.I get
the exception - file access denied permission to read .Could u tell me a way to get
rid of this exception to read
case ID is:986760
-Original Message-
From: Teja Jo [EMAIL PROTECTED]
Sent: Friday, Jan 30 2004 3:00AM
To: Tomcat User Mailing List [EMAIL PROTECTED]
Subject: File Access Denied
Hello everyone,
I have a file in 1 of the directories - from where 1 of the files in the same
directory
I am getting the following error when I try to access a file from the
remote server:
Created catalinaLoader in: d:\Program Files\Apache Group\Tomcat
4.1\server\lib
Nov 20, 2003 11:41:31 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Nov 20, 2003
-mail)
Subject: JK2 error- file access denied
Importance: High
I am getting the following error when I try to access a file from the
remote server:
Created catalinaLoader in: d:\Program Files\Apache Group\Tomcat
4.1\server\lib
Nov 20, 2003 11:41:31 AM org.apache.coyote.http11
is taking care of this part by
itself.
Thank you for replying back.
James
-Original Message-
From: eric perso [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 12:01 PM
To: 'Tomcat Users List'
Subject: RE : JK2 error- file access denied
Hi,
You have not the rights to write
Or you
error- file access denied
Hi,
You have not the rights to write
Or you write with incorrect path separator /
Correct under windows \ for file and directory
I hope , i answer to your probleme
-Original Message-
From: James Ostad [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20
I would like to log every file access (defined by its URL) in Tomcat? Is
there a standard way of doing that? I would like to have a log file which has
one entry for each file access with timestamp and IP-address...
--
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File
3.3.2.
Michael
-Original Message-
From: Ralf Bierig [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 2:12 PM
To: [EMAIL PROTECTED]
Subject: Logging of individual file access - How?
I would like to log every file access (defined by its URL) in
Tomcat
See AccessLogValve. There should be an example in server.xml
-Tim
Ralf Bierig wrote:
I would like to log every file access (defined by its URL) in Tomcat? Is
there a standard way of doing that? I would like to have a log file which has
one entry for each file access with timestamp and IP
, October 23, 2003 2:12 PM
To: [EMAIL PROTECTED]
Subject: Logging of individual file access - How?
I would like to log every file access (defined by its URL) in
Tomcat? Is there a standard way of doing that?
I would like to have a log file which has
one entry for each file access
Howdy,
It appears to be a Clickshare problem: ask them.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: The Wolf [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 6:20 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.24: file access problem?
Hi,
I am running Tomcat
Hi,
I am running Tomcat 4.1.24 on Red Hat Linux 7.3 with Sun JVM 1.4.1.
I am experiencing a problem with a Java webapp (clickshare):
***
3403 [Thread-19] INFO click.cs.CSConfiguration - Reading
configuration file /etc/opt/clickshare/www.mysite.com.conf
Hi everybody,
I don't know if this exists in any manual, if it does, please tell me
where...
The thing's that I'd like to access files inside a context under webapps
with my jsp file but I'm getting nullPointerException, I'm sure the problem
is that I don't know where Tomcat points when it opens
Howdy,
Use ServletContext.getResource() instead of the java.io APIs.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Martín Mauri [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 11:09 AM
To: Tomcat Users List
Subject: File Access..
Hi everybody,
I don't know
Hi all.
I'm currently working on a java servlet with tomcat and I want it to be able
to load a different data file dependent on certain parameters passed to the
servlet. The problem is that if I just try to open the file with the file
name (i.e. FileInputStream fin = new
-Original Message-
From: Patrick Martz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 1:42 PM
To: '[EMAIL PROTECTED]'
Subject: File access from a servlet.
Hi all.
I'm currently working on a java servlet with tomcat and I
want it to be able to load a different
Servlets have different security restrictions on which files they can touch
and interact with.
From: Patrick Martz [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: File access from a servlet.
Date: Tue, 17 Dec 2002 10:42:00
file. :)
-Original Message-
From: Tim Moore [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:46 AM
To: Tomcat Users List
Subject: RE: File access from a servlet.
-Original Message-
From: Patrick Martz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 1
PROTECTED]]
Sent: Tuesday, December 17, 2002 2:02 PM
To: 'Tomcat Users List'
Subject: RE: File access from a servlet.
Ok well that's exactly the problem. getResourceAsStream
requires you to
supply the path of the resource and that is what I'm missing.
I did a quick
look
-Original Message-
From: Patrick Martz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 2:02 PM
To: 'Tomcat Users List'
Subject: RE: File access from a servlet.
Ok well that's exactly the problem. getResourceAsStream
requires you to supply the path of the resource
test message - sorry
-Original Message-
From: Tim Moore [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 1:11 PM
To: Tomcat Users List
Subject: RE: File access from a servlet.
-Original Message-
From: Patrick Martz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday
I'm having a problem with TC4.0.3 (Win2K, JDK1.3.1)
I have some code that reads a property file and tries to load fonts
listed within. ClassLoader.getResource() is used to locate the prop file
and font files
I'm attaching the servlet test code. This code works fine under TC3.2.2
and TC3.3a
27 matches
Mail list logo