Re: file access via HttpSession

2005-07-12 Thread Tim Funk
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)

file access via HttpSession

2005-07-12 Thread Clark Slater
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

Re: file access via HttpSession

2005-07-12 Thread Ben Souther
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

Re: file access via HttpSession

2005-07-12 Thread Frank W. Zammetti
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

file access via HttpSession

2005-07-11 Thread Clark Slater
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

File Access Denied

2004-01-30 Thread Teja Jo
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

AUTO 'Getty=986-760'File Access Denied

2004-01-30 Thread Getty Images USA Support
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

JK2 error- file access denied

2003-11-20 Thread James Ostad
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

RE : JK2 error- file access denied

2003-11-20 Thread eric perso
-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

RE: RE : JK2 error- file access denied

2003-11-20 Thread James Ostad
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

RE: RE : JK2 error- file access denied

2003-11-20 Thread James Ostad
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

Logging of individual file access - How?

2003-10-23 Thread Ralf Bierig
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

RE: Logging of individual file access - How?

2003-10-23 Thread Lemke, Michael IZ/HZA-IE5
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

Re: Logging of individual file access - How?

2003-10-23 Thread Tim Funk
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

RE: Logging of individual file access - How?

2003-10-23 Thread Ralph Einfeldt
, 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

RE: Tomcat 4.1.24: file access problem?

2003-07-15 Thread Shapira, Yoav
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

Tomcat 4.1.24: file access problem?

2003-07-14 Thread The Wolf
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

File Access..

2003-06-30 Thread Martín Mauri
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

RE: File Access..

2003-06-30 Thread Shapira, Yoav
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

File access from a servlet.

2002-12-17 Thread Patrick Martz
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

RE: File access from a servlet.

2002-12-17 Thread Tim Moore
-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

Re: File access from a servlet.

2002-12-17 Thread Michael McLawhorn
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

RE: File access from a servlet.

2002-12-17 Thread Patrick Martz
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

RE: File access from a servlet.

2002-12-17 Thread Turner, John
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

RE: File access from a servlet.

2002-12-17 Thread Tim Moore
-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

RE: File access from a servlet.

2002-12-17 Thread AUBUCHON, KEVIN (SBCSI)
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

file access (security?)

2002-04-02 Thread David Kavanagh
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