I have the Servlet which creates the new images in webapp/images
folder by ImageIO.write()
method. Before starting the server this folder is empty.
This is JSP which should displays the images:
<figure>
<img src="subimages/subimage_0.jpg" height="144" width="256">
</figure>
<figure>
<img src="subimages/subimage_1.jpg" height="144" width="256">
</figure>
So I start my server, go through localhost:8080/puzzle
and see nothing, but in the same time folder images
contains all images I need. Refrashing the page didn't help. Then I restart my server, and JSP displays my images. Everything is ok, but can it displays my images without server's restarting?
I will be sooo thankful for any explanation or advice.