hi
im new to jsp iam using netbeans. I have a image in C: called w.gif. in index.jsp i have <img src="C:/w.gif" alt="W"> but it doesnt show the picture.
any help?
thanx
Make sure the image is reachable through an http request to your web application server (or elsewhere).
some browsers and firewalls will prohibit loading or accessing files from the users computer, but otherwise try this:
file:///C:/w.gif
I tried everything but i could not access it, as I was using netbeans. I think it has some kind of restriction. it worked when I moved the image into my project :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.