title: Struts 2 display image
body: <p>I am looking for a simpler solution to display an image inside a JSP page, within a Struts2 application. The solution which I found so far (and is working) is this one: <a href="http://www.mkyong.com/struts2/struts-2-dynamic-image-example/" rel="nofollow">Struts 2 dynamic image example</a>.</p>
  
  <p>However, writing the image as a stream of bytes seems to me like an overkill. Is there any other simpler solution? or it is absolutely necessary to use a stream of bytes?</p>
  
  <p>Simply, writing <code>&lt;img src="#image_location_on_disk"&gt;</code>is not an acceptable solution, because I want struts to be responsible for bringing my image (in my business logic I decide whether an image should be displayed or not)</p>