Re: Serving images from classes directory

2009-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Susan, On 6/18/2009 10:57 AM, Susan G. Conger wrote: I actually was thinking about doing it that way. But I was wondering about the overhead. I wish I knew how they were serving up the .html files in the class package. Just follow the code: you

Re: Serving images from classes directory

2009-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Susan, On 6/18/2009 8:13 AM, Susan G. Conger wrote: This is a windows box so I can't just put links in the other area. mklink.exe? Why does nobody think that NTFS supports links? I actually have to move or copy the pieces. Having multiple

RE: Serving images from classes directory

2009-06-18 Thread Susan G. Conger
bother. Thanks, Susan -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Wednesday, June 17, 2009 4:34 PM To: Tomcat Users List Subject: Re: Serving images from classes directory Susan, have a look at this : http://tuckey.org/urlrewrite/ This is a servlet filter

RE: Serving images from classes directory

2009-06-18 Thread Susan G. Conger
time/steps. This is what I am trying to avoid by serving the custom content from the images directory. Thanks, Susan -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, June 17, 2009 2:58 PM To: Tomcat Users List Subject: Re: Serving images from classes directory

RE: Serving images from classes directory

2009-06-18 Thread Caldarale, Charles R
From: Susan G. Conger [mailto:sus...@bfcassociates.com] Subject: RE: Serving images from classes directory But from a maintenance/source control stand point it sure would make things a lot easier if I didn't have to pick and choose what directories to move when deploying on the users

RE: Serving images from classes directory

2009-06-18 Thread Caldarale, Charles R
From: Susan G. Conger [mailto:sus...@bfcassociates.com] Subject: RE: Serving images from classes directory So I want to put all of my custom scripts and graphics in that class package that it creates. I then want to be able to access my custom content by editing the html and putting a url

Re: Serving images from classes directory

2009-06-18 Thread Andre-John Mas
On 18-Jun-2009, at 08:26, Susan G. Conger wrote: -- What is 'it', precisely? It is server images from the classes directory. I realize the correct place to put my scripts and graphics. However the tool app deploys the app it makes for me as a class under it's classes directory. So I want

Re: Serving images from classes directory

2009-06-18 Thread Pid
Susan G. Conger wrote: -- What is 'it', precisely? It is server images from the classes directory. I realize the correct place to put my scripts and graphics. However the tool app deploys the app it makes for me as a class under it's classes directory. So I want to put all of my custom

RE: Serving images from classes directory

2009-06-18 Thread Caldarale, Charles R
From: Andre-John Mas [mailto:aj...@sympatico.ca] Subject: Re: Serving images from classes directory The only way to serve images from the classes directory would be for you to write a servlet that reads the files and then serves them up. While you can do this, don't be surprised

RE: Serving images from classes directory

2009-06-18 Thread Susan G. Conger
The tool app is the third party development tool that is used to generate my web application. -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, June 18, 2009 8:47 AM To: Tomcat Users List Subject: Re: Serving images from classes directory Susan G. Conger wrote

RE: Serving images from classes directory

2009-06-18 Thread Susan G. Conger
to the classpath? Thanks, Susan -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, June 18, 2009 8:32 AM To: Tomcat Users List; sus...@bfcassociates.com; p...@pidster.com Subject: RE: Serving images from classes directory From: Susan G

RE: Serving images from classes directory

2009-06-18 Thread Susan G. Conger
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, June 18, 2009 8:30 AM To: Tomcat Users List Subject: RE: Serving images from classes directory From: Susan G. Conger [mailto:sus...@bfcassociates.com] Subject: RE: Serving images from classes

RE: Serving images from classes directory

2009-06-18 Thread Caldarale, Charles R
From: Susan G. Conger [mailto:sus...@bfcassociates.com] Subject: RE: Serving images from classes directory Sorry, it is a treated as a package with .xml, .html, .class files, and .java files. So it is serving up the .html files that are in there just fine. You're saying that you already

RE: Serving images from classes directory

2009-06-18 Thread Susan G. Conger
To: Tomcat Users List Subject: RE: Serving images from classes directory From: Susan G. Conger [mailto:sus...@bfcassociates.com] Subject: RE: Serving images from classes directory Sorry, it is a treated as a package with .xml, .html, .class files, and .java files. So it is serving up the .html

Re: Serving images from classes directory

2009-06-18 Thread Pid
Caldarale, Charles R wrote: From: Susan G. Conger [mailto:sus...@bfcassociates.com] Subject: RE: Serving images from classes directory Sorry, it is a treated as a package with .xml, .html, .class files, and .java files. So it is serving up the .html files that are in there just fine. Which

Re: Serving images from classes directory

2009-06-18 Thread Pid
, June 18, 2009 8:39 AM To: Tomcat Users List Cc: p...@pidster.com Subject: Re: Serving images from classes directory On 18-Jun-2009, at 08:26, Susan G. Conger wrote: -- What is 'it', precisely? It is server images from the classes directory. I realize the correct place to put my scripts

Re: Serving images from classes directory

2009-06-18 Thread André Warnier
Susan G. Conger wrote: All that is controlled by the tool app (Not written by me). That is why I have to play nice. :-) Here is my web.xml for the tool app. ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE web-app (View Source for full doctype...) - web-app etc.. While not being in any

RE: Serving images from classes directory

2009-06-17 Thread Caldarale, Charles R
From: Susan G. Conger [mailto:sus...@bfcassociates.com] Subject: Serving images from classes directory I need to be able to serve images from the classes directory of my web app. Try using ClassLoader.getResourceAsStream() to read the image, then write it to the response output stream.

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
[mailto:chuck.caldar...@unisys.com] Sent: Wednesday, June 17, 2009 11:33 AM To: Tomcat Users List Subject: RE: Serving images from classes directory From: Susan G. Conger [mailto:sus...@bfcassociates.com] Subject: Serving images from classes directory I need to be able to serve images from the classes

Re: Serving images from classes directory

2009-06-17 Thread Hassan Schroeder
On Wed, Jun 17, 2009 at 6:56 AM, Susan G. Conger sus...@bfcassociates.com wrote: This may be a bit weird, however there is a reason for it.  I need to be able to serve images from the classes directory of my web app. I have to ask -- why? It seems a pointless complication... -- Hassan

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
images from classes directory On Wed, Jun 17, 2009 at 6:56 AM, Susan G. Conger sus...@bfcassociates.com wrote: This may be a bit weird, however there is a reason for it.  I need to be able to serve images from the classes directory of my web app. I have to ask -- why? It seems a pointless

Re: Serving images from classes directory

2009-06-17 Thread Hassan Schroeder
On Wed, Jun 17, 2009 at 9:04 AM, Susan G. Conger sus...@bfcassociates.comwrote: The web app is made by another company that screen scrapes/translates a mainframe app and then makes a web app out of it. They store this in their classes directory. So in order to keep everything together and

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
...@gmail.com] Sent: Wednesday, June 17, 2009 12:10 PM To: Tomcat Users List; sus...@bfcassociates.com Subject: Re: Serving images from classes directory On Wed, Jun 17, 2009 at 9:04 AM, Susan G. Conger sus...@bfcassociates.comwrote: The web app is made by another company that screen scrapes

RE: Serving images from classes directory

2009-06-17 Thread Caldarale, Charles R
From: Susan G. Conger [mailto:sus...@bfcassociates.com] Subject: RE: Serving images from classes directory If I want my stuff to play nice with their stuff then I have to wedge my stuff into their stuff. So what is your stuff? Still haven't heard an explanation of why you think images

Re: Serving images from classes directory

2009-06-17 Thread Hassan Schroeder
On Wed, Jun 17, 2009 at 9:24 AM, Susan G. Conger sus...@bfcassociates.comwrote: As I said. It is not a web app that I have created. It is generated by a third party development environment. If I want my stuff to play nice with their stuff then I have to wedge my stuff into their stuff.

Re: Serving images from classes directory

2009-06-17 Thread Tim Funk
If the images are physical images in the classes directory - you have a few options. 1) At build time - move (or copy) the files from the classes directory to somewhere more sane that the default servlet can access 2) Write a filter the detects these images that live in the classes dir, and

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
. Underneath I have tied in netBeans the best I can so I can debug their stuff. But that has issues too. Thanks, Susan -Original Message- From: Tim Funk [mailto:funk...@apache.org] Sent: Wednesday, June 17, 2009 1:07 PM To: Tomcat Users List Subject: Re: Serving images from classes directory

Re: Serving images from classes directory

2009-06-17 Thread Pid
[mailto:funk...@apache.org] Sent: Wednesday, June 17, 2009 1:07 PM To: Tomcat Users List Subject: Re: Serving images from classes directory If the images are physical images in the classes directory - you have a few options. 1) At build time - move (or copy) the files from the classes

Re: Serving images from classes directory

2009-06-17 Thread Tim Funk
[mailto:funk...@apache.org] Sent: Wednesday, June 17, 2009 1:07 PM To: Tomcat Users List Subject: Re: Serving images from classes directory If the images are physical images in the classes directory - you have a few options. 1) At build time - move (or copy) the files from the classes directory

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
[mailto:p...@pidster.com] Sent: Wednesday, June 17, 2009 1:29 PM To: Tomcat Users List Subject: Re: Serving images from classes directory Susan G. Conger wrote: Thanks Tim. I don't have control during build because that is done by the third party tool. I am not going to mention their name. I

Re: Serving images from classes directory

2009-06-17 Thread Pid
app might be the people you really want to be talking to about this. p Thanks, Susan -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, June 17, 2009 1:29 PM To: Tomcat Users List Subject: Re: Serving images from classes directory Susan G. Conger wrote

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
the tool app builds into subversion so I can have some source control. Thanks, Susan -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, June 17, 2009 2:09 PM To: Tomcat Users List Subject: Re: Serving images from classes directory Susan G. Conger wrote: The template

RE: Serving images from classes directory

2009-06-17 Thread Caldarale, Charles R
From: Susan G. Conger [mailto:sus...@bfcassociates.com] Subject: RE: Serving images from classes directory This is a web app that is deploying it's own web app. Isn't that illegal in some states/countries? The web app that gets deployed is my web app while the web app doing

Re: Serving images from classes directory

2009-06-17 Thread Pid
understanding is accurate first. p Thanks, Susan -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, June 17, 2009 2:09 PM To: Tomcat Users List Subject: Re: Serving images from classes directory Susan G. Conger wrote: The template files are in the classes

Re: Serving images from classes directory

2009-06-17 Thread David kerber
Susan G. Conger wrote: The template files are in the classes directory. This is a web app that is deploying it's own web app. So it is rather convoluted. The web app that gets deployed is my web app while the web app doing the developing is the third party tool. Thanks, Susan

Re: Serving images from classes directory

2009-06-17 Thread André Warnier
, Susan -Original Message- From: Tim Funk [mailto:funk...@apache.org] Sent: Wednesday, June 17, 2009 1:07 PM To: Tomcat Users List Subject: Re: Serving images from classes directory If the images are physical images in the classes directory - you have a few options. 1) At build time

Re: Serving images from classes directory

2009-06-17 Thread Tsirkin Evgeny
app builds into subversion so I can have some source control. Thanks, Susan -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, June 17, 2009 2:09 PM To: Tomcat Users List Subject: Re: Serving images from classes directory Susan G. Conger wrote