I wrote an action class to return an image, and display perfect.
http://localhost/ecommerce/ImageAction?imageId=darksouls.jpg but, when i use struts 2' jquery plugin div resize sample(just copy& paste their demo code, but only change action at following. <s:url var="ajax" value='ImageAction?imageId=darksouls.jpg' /> <sj:div href="%{ajax}" indicator="indicator" resizable="true" resizableAnimate="true" resizableGhost="true" resizableHelper="ui-state-highlight" resizableAspectRatio="true" cssStyle="width: 250px; height: 180px;" cssClass="ui-widget-content ui-corner-all"> <img id="indicator" src="images/indicator.gif" alt="Loading..." style="display:none"/> </sj:div> It return/display garbage char from image, really have no idea why this happen, because regular call http://localhost/ecommerce/ImageAction?imageId=darksouls.jpg works perfect. any trick to use s:j:div resize feature? thanks in advance john