Re: Relative directory addressing to parent directory

2004-04-18 Thread John B. Moore
Tom,

  Thanks, but...  I think you missed what I was after..  I wanted to 
be able to "back reference" to the parent directory of the web 
application in a link to an image..

Example: (trivial example)

   Normally you would use a relative path to an image directory "IN" 
the web application like so..



  ... but if you wanted to use an image that was NOT in your web app.. 
(I have my reason, but I won't bore you with the details)..  Normally in 
just plain HTML served by Apache I could..



   to refer "back" to the parent directory which contains it's own 
"images" directory and refer to that directory via "../" syntax.

It seems that Tomcat does not support that kind of "relative" 
addressing to a parent directory..

Do you know a way around this...

John...

Tom K wrote:

John, relative paths are always a headache (until you do some
book-learning :-)). What I do is, right after my  tag I put in a
line like this:


What the line above does is gives you the full path as your base
reference.
You can put 'kind-of' the same line in your regular html pages by using
just the relative paths. Some may argue with the approach I use; if you
include footers` and headers though and use the line right after your
 tag your relative path will always be the same.
Tom Kochanowicz



-Original Message-
From: John B. Moore [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 6:27 PM
To: Tomcat Users List
Subject: Relative directory addressing to parent directory

Can't seem to get this to work

Example:   Under  Tomcat/webapps I want an images directory that "any" 
of the web applications in that directory can access in their pages. 

 In static HTML (under Apache) I would use..

  ../images/myimage.jpg

  and it would work just fine.. (the "../" would cause it to "backup" 
one folder to the parent and access the images directory directly under 
"webapps")

  I can seem to get this to work within a JSP page in Tomcat (4.1.29)

 As a test I created an HTML inwhich this works under Apache. Then 
changed it to a .jsp to run under Tomcat with the target image in 
/webapps/images/ and the app under /webapps/testapp.

  Suggestions as to what I am missing...???

   John..

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Relative directory addressing to parent directory

2004-04-17 Thread Tom K
John, relative paths are always a headache (until you do some
book-learning :-)). What I do is, right after my  tag I put in a
line like this:



What the line above does is gives you the full path as your base
reference.

You can put 'kind-of' the same line in your regular html pages by using
just the relative paths. Some may argue with the approach I use; if you
include footers` and headers though and use the line right after your
 tag your relative path will always be the same.

Tom Kochanowicz




-Original Message-
From: John B. Moore [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 6:27 PM
To: Tomcat Users List
Subject: Relative directory addressing to parent directory

Can't seem to get this to work

Example:   Under  Tomcat/webapps I want an images directory that "any" 
of the web applications in that directory can access in their pages. 

  In static HTML (under Apache) I would use..

   ../images/myimage.jpg

   and it would work just fine.. (the "../" would cause it to "backup" 
one folder to the parent and access the images directory directly under 
"webapps")

   I can seem to get this to work within a JSP page in Tomcat (4.1.29)

  As a test I created an HTML inwhich this works under Apache. Then 
changed it to a .jsp to run under Tomcat with the target image in 
/webapps/images/ and the app under /webapps/testapp.

   Suggestions as to what I am missing...???

John..

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Relative directory addressing to parent directory

2004-04-14 Thread Parsons Technical Services
There are two other possible solutions.

1. Have a servlet respond to all calls for an image and read it from an
external directory then stream it back to the client.

2. Store it in a database as a blob. Then stream it back to the client.

I have not done this myself yet. But am planning the database solution next
week.

Doug
www.parsonstechnical.com



- Original Message - 
From: "John B. Moore" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 14, 2004 10:59 PM
Subject: Re: Relative directory addressing to parent directory


> Yeah, that is what seemed to be the case..  I was hoping I was wrong and
> somehow was not configuring something right.. Hence the posting here...
>
>
>
> Julio César Aguilar wrote:
>
> > In my knowledge:
> >
> > For tomcat to be able to serve the images, that images directory hast
> > to live inside a web application (or be a web application by itself).
> >
> > If you choose to do the later, then you could use a path like
> > "/images/myimage.jpg" to display those images.
> >
> > ---
> > Julio César Aguilar Cabrera
> > [EMAIL PROTECTED]
> > Proyecto SIGC3, LANIA
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Relative directory addressing to parent directory

2004-04-14 Thread John B. Moore
Yeah, that is what seemed to be the case..  I was hoping I was wrong and 
somehow was not configuring something right.. Hence the posting here...

  

Julio César Aguilar wrote:

In my knowledge:

For tomcat to be able to serve the images, that images directory hast 
to live inside a web application (or be a web application by itself).

If you choose to do the later, then you could use a path like 
"/images/myimage.jpg" to display those images.

---
Julio César Aguilar Cabrera
[EMAIL PROTECTED]
Proyecto SIGC3, LANIA
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Relative directory addressing to parent directory

2004-04-14 Thread Julio César Aguilar
In my knowledge:

For tomcat to be able to serve the images, that images directory hast to live 
inside a web application (or be a web application by itself).

If you choose to do the later, then you could use a path like 
"/images/myimage.jpg" to display those images.

---
Julio César Aguilar Cabrera
[EMAIL PROTECTED]
Proyecto SIGC3, LANIA
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Relative directory addressing to parent directory

2004-04-14 Thread John B. Moore
Can't seem to get this to work

Example:   Under  Tomcat/webapps I want an images directory that "any" 
of the web applications in that directory can access in their pages. 

 In static HTML (under Apache) I would use..

  ../images/myimage.jpg

  and it would work just fine.. (the "../" would cause it to "backup" 
one folder to the parent and access the images directory directly under 
"webapps")

  I can seem to get this to work within a JSP page in Tomcat (4.1.29)

 As a test I created an HTML inwhich this works under Apache. Then 
changed it to a .jsp to run under Tomcat with the target image in 
/webapps/images/ and the app under /webapps/testapp.

  Suggestions as to what I am missing...???

   John..

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]