can't display gif in jsp, the solution to this problem is simple. it only need 2 thing that is a jsp page to display the image and a servlet to write the image.
in jsp
..
img src=[point to servlet?id=xxx.gif]
..
example: ...img src=controller?action=viewGif&id=card.gif
in servlet
String gif = request.getParameter("id");
response.setContentType("image/gif");
OutputStream out = response.getOutputStream();
FileInputStream in = new FileInputStream(Props.getCardDest() + gif);
int size = in.available();
byte[] content = new byte[size];
in.read(content);
out.write(content);
in.close();
out.close();
that is..it took me a lot time to know about it...