The most important thing to do is think like a browser.
I suggest you get a mockup of your page running as pure HTML first, then convert to
JSP. If your output page is being created by a servlet, the browser thinks a resource like src="image.jpg" should come from the same address as the servlet because you have not specified a complete URL.
It is a good idea to use a <base> tag to tell the browser where to find resources such as images, sound files, etc. that have relative addresses.
Bill