Re: displaying an image from outside the webapps directory

2008-04-01 Thread Kimberly Begley
Great - got it working! Thanks so much for that again! Kimberly On Tue, Apr 1, 2008 at 12:07 AM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kimberly, Kimberly Begley wrote: | I was hoping to use the jsp:include tag to include the snippet

Re: displaying an image from outside the webapps directory

2008-03-31 Thread Kimberly Begley
Thanks for that I will check it out - I have switched gears and have been trying to get a c:import to work - now I get the error printed in the middle of the page saying that: The requested resource (/test/home/kimberly/Desktop/testhtmlfile1.html) is not available where test is the directory

Re: displaying an image from outside the webapps directory

2008-03-31 Thread Hassan Schroeder
On Sun, Mar 30, 2008 at 11:44 PM, Kimberly Begley [EMAIL PROTECTED] wrote: trying to get a c:import to work - now I get the error printed in the middle of the page saying that: The requested resource (/test/home/kimberly/Desktop/testhtmlfile1.html) is not available where test is the

Re: displaying an image from outside the webapps directory

2008-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kimberly, Kimberly Begley wrote: | I was hoping to use the jsp:include tag to include the snippet (no html or | body tags) - I tried with the same code that Chris sent to open a jpeg - | thinking it might be the same solution for the html but have

Re: displaying an image from outside the webapps directory

2008-03-30 Thread Kimberly Begley
Hi, Wasn't sure whether to start a new thread but my question is in regards to the previous code. As well as the jpeg I also have some html that I wanted to include in the same page - so the html snippet is in a directory outside of the webapps directory and when a user selects a link I'd like to

Re: displaying an image from outside the webapps directory

2008-03-30 Thread Vamsavardhana Reddy
Have you considered using the allowLinking attribute (See http://tomcat.apache.org/tomcat-6.0-doc/config/context.html) and creating a soft-link inside the webapp directory to the directory which is outside of webapp? ++Vamsi On Fri, Mar 21, 2008 at 4:28 PM, Kimberly Begley [EMAIL PROTECTED]

Re: displaying an image from outside the webapps directory

2008-03-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kimberly, Kimberly Begley wrote: | I might have messed it up when getting it to compile - I was having | problems with the getMimeType method with messages like this: Oops. It looks like I gave you some bad code, too. |

Re: displaying an image from outside the webapps directory

2008-03-24 Thread Kimberly Begley
Thanks so much!! The image is coming up now! So much appreciated! Kimberly On Tue, Mar 25, 2008 at 12:03 AM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kimberly, Kimberly Begley wrote: | I might have messed it up when getting it to

Re: displaying an image from outside the webapps directory

2008-03-23 Thread Kimberly Begley
Thanks for that Chris - very much appreciated, I did manage to get it to compile but when I click on the link in my jsp page everything appears except the image - and also no errors - when I view source it includes the img line for the plot as so: IMG

displaying an image from outside the webapps directory

2008-03-21 Thread Kimberly Begley
Hi, I'm trying to make a jsp display a plot that is a jpeg in a directory outside the catalina_home directory - I do not have the option of putting it in the webapp directory (there's 1000's of them - my page will just display one of them as selected by the user - along with some other info) - how

Re: displaying an image from outside the webapps directory

2008-03-21 Thread Lars Nielsen Lind
Kimberly Begley skrev: Hi, I'm trying to make a jsp display a plot that is a jpeg in a directory outside the catalina_home directory - I do not have the option of putting it in the webapp directory (there's 1000's of them - my page will just display one of them as selected by the user - along

Re: displaying an image from outside the webapps directory

2008-03-21 Thread Kimberly Begley
Wow - great - thanks for the fast response - I will try it out. Have a great weekend! Kimberly On Fri, Mar 21, 2008 at 9:12 PM, Lars Nielsen Lind [EMAIL PROTECTED] wrote: Kimberly Begley skrev: Hi, I'm trying to make a jsp display a plot that is a jpeg in a directory outside the

Re: displaying an image from outside the webapps directory

2008-03-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lars, Lars Nielsen Lind wrote: | You can do that with a Servlet. Here are some sample code. Replace | content of with your own data. This would be a much better class if it: * Did not have extraneous class members. * Used a buffer for reading and