You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Graham Lounder <lo...@caris.com> on 2002/04/30 17:18:18 UTC

OT: Changing Content Type

Sorry, this is a little off topic.  Is there any way to change your content type mid way through a reponse?  What I want to do is generate a dynamic html page, but I want to change content type and put a dynamically generated jpeg image in the page.  Is this possible?  

Right now I'm having to make an image tag which points to a seperate servlet which generates the image.  I'm trying to make a tag out of my code and it would help if I could put the html and image generation code together in the same request.  Any ideas if this is even possible?

Graham