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 co

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: y

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. - etc.. While not being in any way the expert here, the more I see and hear about this webapp, (or is it "webapp embedded in ano

Re: Serving images from classes directory

2009-06-18 Thread Pid
age- > From: Andre-John Mas [mailto:aj...@sympatico.ca] > Sent: Thursday, 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: > >>

RE: Serving images from classes directory

2009-06-18 Thread Susan G. Conger
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 pu

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 f

RE: Serving images from classes directory

2009-06-18 Thread Susan G. Conger
3 2 - invoker /servlet/* - servletToJsp /servletToJsp -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, June 18, 2009 10:49 AM 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 > > 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: Serving images from classes directory

2009-06-18 Thread Susan G. Conger
Susan -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

RE: Serving images from classes directory

2009-06-18 Thread Susan G. Conger
added 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:

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 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

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 cus

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 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 th

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 mov

RE: Serving images from classes directory

2009-06-18 Thread Susan G. Conger
plication it will take extra 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 i

RE: Serving images from classes directory

2009-06-18 Thread Susan G. Conger
rent then don't 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

Re: Serving images from classes directory

2009-06-17 Thread Tsirkin Evgeny
I check everything 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: S

Re: Serving images from classes directory

2009-06-17 Thread André Warnier
t 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 If the images are physical images in th

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 Self-modify

Re: Serving images from classes directory

2009-06-17 Thread Pid
. I check everything the tool app builds into subversion > so I can have some source control. Let's see if my understanding is accurate first. p > Thanks, > Susan > > > -Original Message- > From: Pid [mailto:p...@pidster.com] > Sent: Wednesday, Jun

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

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
g 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

Re: Serving images from classes directory

2009-06-17 Thread Pid
o occurs that the authors of the tool 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

2009-06-17 Thread Susan G. Conger
: 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: > Thanks Tim. I don't have control during build because that is done by the > third party tool. I am not going to mentio

Re: Serving images from classes directory

2009-06-17 Thread Tim Funk
- 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 - move (or copy) the files from t

Re: Serving images from classes directory

2009-06-17 Thread Pid
> 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 > > If the images are physical images in the classes direct

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
pplication. 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

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 th

Re: Serving images from classes directory

2009-06-17 Thread Hassan Schroeder
On Wed, Jun 17, 2009 at 9:24 AM, Susan G. Conger wrote: > 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. Which is > located under

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 a

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
san.schroe...@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 wrote: > The web app is made by another company that screen scrapes/translates a &g

Re: Serving images from classes directory

2009-06-17 Thread Hassan Schroeder
On Wed, Jun 17, 2009 at 9:04 AM, Susan G. Conger wrote: > 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 make > maintenance and d

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
ct: Re: Serving images from classes directory On Wed, Jun 17, 2009 at 6:56 AM, Susan G. Conger 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 co

Re: Serving images from classes directory

2009-06-17 Thread Hassan Schroeder
On Wed, Jun 17, 2009 at 6:56 AM, Susan G. Conger 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 Schroeder ---

RE: Serving images from classes directory

2009-06-17 Thread Susan G. Conger
les R [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

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

Serving images from classes directory

2009-06-17 Thread Susan G. Conger
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. The web app is created using another companies program and all of the code is in the classes directory. I want to add an images directory and put all of my custo