accessing an image outside my webapp

2004-01-15 Thread Alain Van Vyve
I have a JSP where I would like to show an image located outside my webapp (e.g. in a c:\photo directory) ... How to do that with the html:img Struts tag ?? Thanks Alain - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: accessing an image outside my webapp

2004-01-15 Thread Mark Lowe
You'll probably want an action that gets the image and then streams it to the html:img tag or c:url html:img page=/image.do / This way you wont be confined to the webapp. e.g response.setContentType(image/jpeg); response.setHeader(Cache-Control, no-cache); OutputStream ou =

RE: accessing an image outside my webapp

2004-01-15 Thread Richard Hightower
] Subject: accessing an image outside my webapp I have a JSP where I would like to show an image located outside my webapp (e.g. in a c:\photo directory) ... How to do that with the html:img Struts tag ?? Thanks Alain

Re: accessing an image outside my webapp

2004-01-15 Thread Mark Lowe
consulting -- http://www.arc-mind.com/consulting.htm#StrutsMentoring -Original Message- From: Alain Van Vyve [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 7:35 AM To: [EMAIL PROTECTED] Subject: accessing an image outside my webapp I have a JSP where I would like to show an image

RE: accessing an image outside my webapp

2004-01-15 Thread Robert Nocera
also has the same file locally. -Rob -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 10:14 AM To: Struts Users Mailing List Subject: Re: accessing an image outside my webapp by jingo. it only works!! just src rather than href html:img src

Re: accessing an image outside my webapp

2004-01-15 Thread Martin Gainty
- From: Robert Nocera [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, January 15, 2004 10:25 AM Subject: RE: accessing an image outside my webapp I don't think Tomcat does, but your local browser will. You are sending your browser a link that tells

Re: accessing an image outside my webapp

2004-01-15 Thread Mark Lowe
To: Struts Users Mailing List Subject: Re: accessing an image outside my webapp by jingo. it only works!! just src rather than href html:img src=file:///test.jpg / I thought tomcat wouldn't have access to anything outside the webapp. On 15 Jan 2004, at 15:03, Richard Hightower wrote: seems

RE: accessing an image outside my webapp

2004-01-15 Thread Robert Nocera
15, 2004 10:29 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: accessing an image outside my webapp Robert The client browser is making a request to a webserver using a relative address I think it would be best to understand the difference between relative addressing and absolute

Re: accessing an image outside my webapp

2004-01-15 Thread Mark Lowe
] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, January 15, 2004 10:25 AM Subject: RE: accessing an image outside my webapp I don't think Tomcat does, but your local browser will. You are sending your browser a link that tells it to load a file on your file system. It will work fine

Re: accessing an image outside my webapp

2004-01-15 Thread Alain Van Vyve
PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, January 15, 2004 10:25 AM Subject: RE: accessing an image outside my webapp I don't think Tomcat does, but your local browser will. You are sending your browser a link that tells it to load a file on your file system

Re: accessing an image outside my webapp

2004-01-15 Thread Mark Lowe
machine unless that machine also has the same file locally. -Rob -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 10:14 AM To: Struts Users Mailing List Subject: Re: accessing an image outside my webapp by jingo. it only works!! just src

RE: accessing an image outside my webapp

2004-01-15 Thread Michael McGrady
a browser on another machine unless that machine also has the same file locally. -Rob -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 10:14 AM To: Struts Users Mailing List Subject: Re: accessing an image outside my webapp by jingo. it only

Re: accessing an image outside my webapp

2004-01-15 Thread Alain Van Vyve
and absolute addressing I invite you to read http://www.drizzle.com/~slmndr/tutorial/relabs.html -Martin - Original Message - From: Robert Nocera To: 'Struts Users Mailing List' Sent: Thursday, January 15, 2004 10:25 AM Subject: RE: accessing an image outside my webappI don't think

Re: accessing an image outside my webapp

2004-01-15 Thread Mark Lowe
addressing and absolute addressing I invite you to read http://www.drizzle.com/~slmndr/tutorial/relabs.html -Martin - Original Message - From: Robert Nocera To: 'Struts Users Mailing List' Sent: Thursday, January 15, 2004 10:25 AM Subject: RE: accessing an image outside my webapp

Re: accessing an image outside my webapp

2004-01-15 Thread Michael McGrady
:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 10:14 AM To: Struts Users Mailing List Subject: Re: accessing an image outside my webapp by jingo. it only works!! just src rather than href html:img src=file:///test.jpg / I thought tomcat wouldn't have access to anything outside the webapp. On 15

Re: accessing an image outside my webapp

2004-01-15 Thread Michael McGrady
' [EMAIL PROTECTED] Sent: Thursday, January 15, 2004 10:25 AM Subject: RE: accessing an image outside my webapp I don't think Tomcat does, but your local browser will. You are sending your browser a link that tells it to load a file on your file system. It will work fine if you are only running

RE: accessing an image outside my webapp

2004-01-15 Thread Michael McGrady
PROTECTED] Sent: Thursday, January 15, 2004 10:29 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: accessing an image outside my webapp Robert The client browser is making a request to a webserver using a relative address I think it would be best to understand the difference between

Re: accessing an image outside my webapp

2004-01-15 Thread Mark Lowe
. -Rob -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 10:14 AM To: Struts Users Mailing List Subject: Re: accessing an image outside my webapp by jingo. it only works!! just src rather than href html:img src=file:///test.jpg / I thought tomcat

Re: accessing an image outside my webapp

2004-01-15 Thread Michael McGrady
:25 AM Subject: RE: accessing an image outside my webappI don't think Tomcat does, but your local browser will. You are sending your browser a link that tells it to load a file on your file system. It will work fine if you are only running locally, but it won't work if you try

Re: accessing an image outside my webapp

2004-01-15 Thread Michael McGrady
to access that link from a browser on another machine unless that machine also has the same file locally. -Rob -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 10:14 AM To: Struts Users Mailing List Subject: Re: accessing an image outside my webapp