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

Recommended Answers

All 3 Replies

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 :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.