dcsimg
Problem with JSP including both text/html and image/png
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   philippe_maire
Posted On:   Tuesday, April 3, 2001 12:00 AM

I want to have both text and an png image in my JSP file.
I build the image on the server side and use an encoder to get
a png image. I try to put this image in the outputstream but it seems
I cannot have different content types in a jsp file.
How can I manage to have several types of content in a same JSP ?

Example :
contentType = "text/html
a Title
then contentType = "image/png"
a png image

Re: Problem with JSP including both text/html and image/png

Posted By:   Igor_Royzis  
Posted On:   Tuesday, April 3, 2001 09:56 AM

This is what I've done:


...some JSP code

...more JSP code



Above example shows how to get Image from a servlet which generates it. Inside your servlet set the output type to image/png.

Re: Problem with JSP including both text/html and image/png

Posted By:   benna_9  
Posted On:   Tuesday, April 3, 2001 03:54 AM

perhaps do you need a multipart response?
About | Sitemap | Contact