|displaying an image on JSP [message #231950]
||Thu, 28 May 2009 11:02
Registered: July 2009
I'm trying to display a simple image on my JSP. For some reason it's not
The image is stored on my C drive, and I already used it on a plain HTML
My JSP is a part of Eclipse dynamic web project.
What should be done to the image file so JSP recognizes it?
Thanks very much in advance.
|Re: displaying an image on JSP [message #232848 is a reply to message #231950]
||Wed, 24 June 2009 00:25
Originally posted by: david_williams.linux.vnet.ibm.com|
> I'm trying to display a simple image on my JSP. For some reason it's
> not displayed.
> The image is stored on my C drive, and I already used it on a plain
> HTML page.
> My JSP is a part of Eclipse dynamic web project.
You'll probably want to import the image into your project, and
references it from there, with some form of relative link.
I'd have to look up the details, but recall that JSPs and Servlets in
general have limitations about what they are given access to, for
security reasons. So, not sure they can access "any 'ol file" on your
file systsem. But, you can if it's in your project.
Powered by FUDForum
. Page generated in 0.01678 seconds