Hello Steven,
���ڶ�, 1999��7��20��, you wrote:
SJO> Mark de Lange asks:
>> The Servlet that I'm developing generates images on-the-fly. I want to
>> include these images into the output HTML code. Is it possible to send the
>> image data along with the HTML code?
>>
>> All examples that I've seen only return an image *or* a HTML page. What I
>> need is an HTML page with images.
SJO> I'm pretty sure you can only include one or the other in the
SJO> response, each element being treated as a separate request. Hm, well,
SJO> okay, I take that back, I know HTTP1.1 addresses the overhead of
SJO> opening separate request connections for each element, allowing the
SJO> browser to request all of the elements in one connection, but I don't
SJO> know if there's any way to take advantage of that from a servlet (if
SJO> so, it would be the equivalent of generating a jar file on the fly to
SJO> answer the request).
Yes, it is true that you can only include one type in your response,
but I think you can add a image tag in your html response, and the
tag's img src=server_name+path_name+image_name. then the server will
add this image as a part of html.
Best regards,
DragonTown mailto:[EMAIL PROTECTED]
___________________________________________________________________________
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