How can you show a image from a servlet on to HTML page? I tried to use it but doesnt show image.. If I am testing the servlet with servlet runner or webserver should I keep the image in the same file?
Provide your code to fix the problem.
Put the image in the context root i.e. the root directory of the application under which the servlet is deployed.
yes code would really help...
i have a servlet that shows images from a DB. in my html, i just put
or something like that. works fine for me!