localhost always resolves to the system that the browser is running upon. So your URL is instructing the browser to look on the users' computer for the image, which of course isn't going to be found.
You should be using a server-relative URL that starts with the context path. See the JspFaq for more information on properly formatting resource URLs in Java web applications.