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

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 the file, which can

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

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 servlet API doc

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 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 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 init-param value, and then do a getRealPath() to convert

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 init-param value, and then do

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 init-param value, and then do a

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

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

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 introduce a slight doubt. Sure it does

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 introduce a slight