RE: Accessing a packaged file

2001-06-15 Thread Craig R. McClanahan
On Tue, 24 Apr 2001, Milt Epstein wrote: On Mon, 23 Apr 2001, Filip Hanik wrote: In this case, the class and the resource were packaged together: that should mean you could use the same class-loader for both, no? (Assuming, of course, the user didn't monkey around with your

RE: Accessing a packaged file

2001-04-24 Thread Samson, Lyndon [IT]
The String parm is the name of the resource, ie it doesn't list resources. -Original Message- From: Jim Downing [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 6:15 PM To: [EMAIL PROTECTED] Subject: Re: Accessing a packaged file I've tried both ways, and I'm still missing

Re: Accessing a packaged file

2001-04-24 Thread Morten Rønseth
Undeliverable mail.

Re: Accessing a packaged file

2001-04-24 Thread Morten Rønseth
Undeliverable mail.

Re: Accessing a packaged file

2001-04-24 Thread Morten Rønseth
Undeliverable mail.

RE: Accessing a packaged file

2001-04-24 Thread Milt Epstein
and the ServletContext ones? Thanks. -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 10:46 AM To: '[EMAIL PROTECTED]' Subject: RE: Accessing a packaged file Or more succinctly; this.getClass().getResourceAsStream

Accessing a packaged file

2001-04-23 Thread Jim Downing
Hi, I'm trying to get a servlet to access a text file that has been packaged with the servlet in a .war file. Is it possible to access the file without knowing it's absolute path when deployed, and if so how? jim

RE: Accessing a packaged file

2001-04-23 Thread Filip Hanik
Downing [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 9:09 AM To: [EMAIL PROTECTED] Subject: Accessing a packaged file Hi, I'm trying to get a servlet to access a text file that has been packaged with the servlet in a .war file. Is it possible to access the file without knowing

RE: Accessing a packaged file

2001-04-23 Thread Samson, Lyndon [IT]
Or more succinctly; this.getClass().getResourceAsStream(String); -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 5:28 PM To: [EMAIL PROTECTED] Subject: RE: Accessing a packaged file Thread.currentThread().getContextClassLoader

RE: Accessing a packaged file

2001-04-23 Thread Milt Epstein
: Accessing a packaged file Hi, I'm trying to get a servlet to access a text file that has been packaged with the servlet in a .war file. Is it possible to access the file without knowing it's absolute path when deployed, and if so how? jim Milt Epstein Research Programmer Software

RE: Accessing a packaged file

2001-04-23 Thread Filip Hanik
in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 9:47 AM To: '[EMAIL PROTECTED]' Subject: RE: Accessing a packaged file -Original Message- From

Re: Accessing a packaged file

2001-04-23 Thread Jim Downing
PROTECTED] Sent: Monday, April 23, 2001 5:47 PM Subject: RE: Accessing a packaged file Or more succinctly; this.getClass().getResourceAsStream(String); From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 5:28 PM To: [EMAIL PROTECTED] Subject: RE: Accessing a packaged file

RE: Accessing a packaged file

2001-04-23 Thread Fernando Padilla
: Monday, April 23, 2001 9:09 AM To: [EMAIL PROTECTED] Subject: Accessing a packaged file Hi, I'm trying to get a servlet to access a text file that has been packaged with the servlet in a .war file. Is it possible to access the file without knowing it's absolute path when deployed

Re: Accessing a packaged file

2001-04-23 Thread Jim Downing
: Filip Hanik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, April 23, 2001 6:13 PM Subject: RE: Accessing a packaged file Or more succinctly; this.getClass().getResourceAsStream(String); nope, this is not a good approach at all! if the class this is loaded

RE: Accessing a packaged file

2001-04-23 Thread Filip Hanik
to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Jim Downing [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 10:15 AM To: [EMAIL PROTECTED] Subject: Re: Accessing a packaged file I've tried both ways, and I'm

RE: Accessing a packaged file

2001-04-23 Thread William Kaufman
,...) -- Bill K. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 10:13 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Accessing a packaged file Or more succinctly; this.getClass().getResourceAsStream(String); nope

RE: Accessing a packaged file

2001-04-23 Thread Filip Hanik
- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 10:46 AM To: '[EMAIL PROTECTED]' Subject: RE: Accessing a packaged file Or more succinctly; this.getClass().getResourceAsStream(String); Or, more succinctly, getClass().getResourceAsStream(String