hi freddy, thanks for the response. that's not exactly what i mean however. what i want my action to do is this:
- retrieve the imageid from the request params - retrieve a byte array from the database corresponding to the image the imageid relates to (so get the image blob from the db) - set the response content-type to, let's say, "image/jpg" - return the byte array as http response so basically my .do would actually be creating a jpg. is this possible? or would i have to use regular servlets for this. ty, Ben -----Original Message----- From: Villalba Arias, Fredy [BILBOMATICA] [mailto:[EMAIL PROTECTED] Sent: 12 februari 2004 12:34 To: Struts Users Mailing List Subject: RE: struts actions and content/type responses Hi Ben, I'm not sure if I understood you well, but I believe it's as simple as coding the Action just like you said and inserting the corresponding URL to call it (I suppose it would have to include the imageID as a parameter) inside, let's say, the "src" attribute on an <image> tag. HTH, Freddy. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]