我也遇到过这样的问题,没有解决。
好像是<html:img 不是这样使用的。

解决方案 »

  1.   

    STRUTS的标签是不支持嵌套的,对于
    <html:img src="<bean:write name='myActionForm' property='pic'/>"
    这种写法是错误的,不知道STRUTS1.2以上的版本能不能支持,目前还没有时间去研究。你要使用
    <html:img src="<%=myActionForm.getPic();%>" />来得到。
      

  2.   

    我用的STRUTS1.1
    就支持嵌套啊
    <html:img src="<bean:write name='myActionForm' property='pic'/>"
    你先直接看看<bean:write name='myActionForm' property='pic'/>打出来的名字对不对