DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26127>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26127

<html:img> tag lacks "action" attribute





------- Additional Comments From [EMAIL PROTECTED]  2004-01-16 11:55 -------
Will something like this do?

public ActionForward execute(ActionMapping mapping, 
ActionForm form, HttpServletRequest request, HttpServletResponse response) throws 
Exception {
try {
 byte[] buffer = new byte[2048];
 int bytesRead;
 InputStream input = 
getServlet().getServletContext().getResourceAsStream("image.jpg");
 OutputStream 
out = response.getOutputStream();

 while ((bytesRead = input.read(buffer)) != -1) {
   
out.write(buffer, 0, bytesRead);
 }
 out.close();
}
catch (Exception e) 
{
}

return null;
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to