Hi Raj,
If your images are regenerated for each request you should look into
GifServlet at
http://www.metawerx.com.au/aaron.porter
Using GifServlet the images will never be stored as files so you don't have
to clean up later. Your servlet generating the HTML page simply includes a
reference to your class derived from GifServlet instead of the file you are
generating. You won't have to worry about synchronization issues so your
HTML servlet can return immediately, allowing the browser to start rendering
the page before the image is created.
Just my 2 cents.
Aaron
> -----Original Message-----
> From: Raj R. Singh [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 05, 1999 8:07 AM
> To: [EMAIL PROTECTED]
> Subject: returning images
>
>
> I have a servlet that calls another class' method to generate an
> image. The servlet returns a web page with a reference to the
> image. The problem is that the image doesn't always show up
> in the web page, although the HTML points to the right file and
> I can look at the GIF I create and it looks fine.
>
> I'm thinking that the web page is returned to the browser before
> the image is finished being created (java's wonderful built-in
> threading), so I need to write some code to make sure the image is
> done before returning the web page.
>
> Is this right? Has anyone had this problem and solved it?
>
> thanks,
> Raj
>
> ---------------------------------------
> Raj Singh Syncline, Inc.
> e: [EMAIL PROTECTED] ph: 617.661.7134
> w: www.syncline.com fax: 617.661.7135
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html