Re: Logo file location

2009-12-16 Thread David kerber
Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: Logo file location In TC 5.5.x or 6.0.x, Where in my webapp folder structure should I put a small .bmp file that I use for putting a logo on generated reports? Use ServletContext.getResourceAsStream() to

Re: resource file location (was: Logo file location)

2009-12-14 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: resource file location (was: Logo file location) The trouble is, it does not really explain what is meant by a "path" in that context, and some of the other method descriptions on the same page introduc

RE: resource file location (was: Logo file location)

2009-12-14 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: resource file location (was: Logo file location) > > The trouble is, it does not really explain what is meant by a "path" in > that context, and some of the other method descriptions on the same > page introd

Re: Logo file location

2009-12-14 Thread Pid
On 14/12/2009 22:02, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/14/2009 3:53 PM, André Warnier wrote: Upon further examination of the spec page above, I would guess that a better way (more flexible) would be to specify the relative URI of your file as

resource file location (was: Logo file location)

2009-12-14 Thread André Warnier
Hi. On another thread, a discussion was started as to how to correctly locate and specify some data file, part of the application, and which needs to be read in by some code part of that same webapp. Say that the application has a context path "/myapp". The original idea is to locate the reso

Re: Logo file location

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/14/2009 3:53 PM, André Warnier wrote: > Upon further examination of the spec page above, I would guess that a > better way (more flexible) would be to specify the relative URI of your > file as an value, and then do a getRealPath() to co

Re: Logo file location

2009-12-14 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Logo file location Upon further examination of the spec page above, I would guess that a better way (more flexible) would be to specify the relative URI of your file as an value, and then do a getRealPath

RE: Logo file location

2009-12-14 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Logo file location > > Upon further examination of the spec page above, I would guess that a > better way (more flexible) would be to specify the relative URI of your > file as an value, and then do a getRealPath()

Re: Logo file location

2009-12-14 Thread André Warnier
André Warnier wrote: David kerber wrote: Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: Logo file location In TC 5.5.x or 6.0.x, Where in my webapp folder structure should I put a small .bmp file that I use for putting a logo on generated reports? Use

Re: Logo file location

2009-12-14 Thread André Warnier
David kerber wrote: Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: Logo file location In TC 5.5.x or 6.0.x, Where in my webapp folder structure should I put a small .bmp file that I use for putting a logo on generated reports? Use

RE: Logo file location

2009-12-14 Thread Caldarale, Charles R
> From: David kerber [mailto:dcker...@verizon.net] > Subject: Re: Logo file location > > Will it find it pretty much wherever I put it No, the argument to ServletContext.getResourceAsStream() is a path argument, which must point to the location of the file of interest. Look at the

Re: Logo file location

2009-12-14 Thread David kerber
Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: Logo file location In TC 5.5.x or 6.0.x, Where in my webapp folder structure should I put a small .bmp file that I use for putting a logo on generated reports? Use ServletContext.getResourceAsStream() to

RE: Logo file location

2009-12-14 Thread Caldarale, Charles R
> From: David kerber [mailto:dcker...@verizon.net] > Subject: Logo file location > > In TC 5.5.x or 6.0.x, Where in my webapp folder structure should I put > a small .bmp file that I use for putting a logo on generated reports? Use ServletContext.getResourceAsStream() to retrieve

Logo file location

2009-12-14 Thread David kerber
In TC 5.5.x or 6.0.x, Where in my webapp folder structure should I put a small .bmp file that I use for putting a logo on generated reports? If possible, I'd like to import it (using FileImputStream) with just a filename with no path. Or if there's a standard place and path to refer to it fro