Servlet as multiple images

Discussion in 'Java' started by Johann Blaser, Jul 31, 2003.

  1. 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
     
    Johann Blaser, Jul 31, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andy Fish
    Replies:
    4
    Views:
    2,427
    Andy Fish
    Dec 17, 2003
  2. Sean Clarke
    Replies:
    1
    Views:
    1,904
    Sudsy
    Jan 7, 2004
  3. circuit_breaker
    Replies:
    2
    Views:
    2,023
    Jack Jia
    Apr 4, 2004
  4. chamikara
    Replies:
    1
    Views:
    49,882
  5. DiscoStu
    Replies:
    0
    Views:
    507
    DiscoStu
    Jul 8, 2004
Loading...

Share This Page