|Re: displaying an image on JSP [message #232848 is a reply to message #231950]
||Wed, 24 June 2009 04: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.09547 seconds