|
Re: displaying an image on JSP [message #232122 is a reply to message #231950] |
Thu, 04 June 2009 02:43 |
|
Anna wrote:
> 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.
> What should be done to the image file so JSP recognizes it?
>
> Thanks very much in advance.
Sounds like a problem when you're running the JSP in a browser. Are
you using the same tag to display the image as in the .html file?
Where does your browser think the image is located according to the
JSP's output?
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Re: displaying an image on JSP [message #232848 is a reply to message #231950] |
Wed, 24 June 2009 04:25 |
Eclipse User |
|
|
|
Originally posted by: david_williams.linux.vnet.ibm.com
Anna wrote:
> 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.03971 seconds