i followed all steps described in tutorial above & manage to get the servlet run well on my local tomcat server (localhost:8080).
the problem is when i deployed the servlet to a remote server and run it ;the image didn't got displayed .this puzzled me !
i tried many solutions like giving absolute url for img tag instead of relative urls. i also gave a jpg extension to img src tag instead of servlet path..but every time the servlet works on localhost & fail to display captcha image on remote server.
what could be the problem ? any hints or ideas are very welcomed.