Servlet as multiple images

J

Johann Blaser

Hallo,

my servlet (class MyServlet) should generate a html-file which contains
some <img..> tags.
The part of the generated html-code with the img-tags looks like this:

....
<img src="http://localhost:8180/MyServlet/pic1.png">
<img src="http://localhost:8180/MyServlet/pic2.png">
<img src="http://localhost:8180/MyServlet/pic3.png">
....

In the meantime my servlet changed to another state in which it is
possible to draw images and
i thought the browser would go through the image-tags and load one image
after another and
the servlet cycles through the images till all images are drawn and goes
then back to a html-printing state.

But, it doesn't. Only the first image is drawn. The other images are
not, just like the browser is blocking, because
only when i make a refresh, the next image is drawn (and then not in
context of the img-tag).
(server is tomcat 4.04)

Does anyone knows a solution to this?

Thanks

J. Blaser
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top