struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh McDonald" <>
Subject Re: how to show an image without its address or OutputStream ?
Date Tue, 20 Dec 2005 05:47:31 GMT

You can't include an image's data with the html in a request. You'll
have to have a servlet dedicated to seving up images using
response.getOutputStream(), and in your JSP use an URL for the servlet
with an image ID or something similar, like the above post.



"His comrades fought beside him, Van Owen and the rest...
       But of all the thompson gunners- Roland was the best."

Josh McDonald
Analyst Programmer
Information Technology
Ph: 61 7 3006 6460

>>> 20/12/2005 3:34:07 pm >>>
i want to show an image in my jsp page. i DON'T want to user the
address (on the server's hard disk) and i want to get it directly from
and set it to the form or something....

i also don't want to user ServletOutputStream outStream =
response.getOutputStream(); because it opens the image in a new page or
wants to download it.

is there a way to send the image directly to src attribute of the img
tag ?

Reza Ghaffaripour 

Messages included in this e-mail and any of its attachments are those
of the author unless specifically stated to represent WorkCover Queensland. The contents of
this message are to be used for the intended purpose only and are to be kept confidential
at all times.
This message may contain privileged information directed only to the intended addressee/s.
Accidental receipt of this information should be deleted promptly and the sender notified.
This e-mail has been scanned by Sophos for known viruses.
However, no warranty nor liability is implied in this respect.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message