Why GIF image is not working on JSP?

Asked By 0 points N/A Posted on -
qa-featured

I have a jsp pages and I have used GIF images there but those are not working. Why GIF image is not working on jsp? Would you please give a clear instruction and explanation about it?

SHARE
Best Answer by John L Krug
Answered By 40 points N/A #179863

Why GIF image is not working on JSP?

qa-featured

Hello there Julio,

I know you are having a hard time there showing your images in jsp.

Please do check the URL and the directory where you save your images, that is the key to your problem.

For more information, you may read this article to help you solve your problem.

Hope this helps you.

Regards,

Roland.

Best Answer
Best Answer
Answered By 10 points N/A #179864

Why GIF image is not working on JSP?

qa-featured

 

Hi Zerbe,
If you actually showed the directories rather than saying things like "the root context" or "the same directoryas the html and JSP files" it would be easier, because the relative paths are not the only issues. Since JSP is designed for character output you should not try to serve binary files of any sort from a JSP page - use aservlet instead.

Thanks for asking.

Login/Register to Answer

Related Questions