struts2 action两次提交有关问题

struts2 action两次提交问题我用的是struts2+spring2.5+ibatis前端用的是velocityaction会执行两次或三次

struts2 action两次提交问题
我用的是struts2+spring2.5+ibatis
前端用的是velocity

action会执行两次或三次

问题在于页面上的img元素

<img src='$user.picUrl'/>

当$user.picUrl等于空字符串的时候,就会引起action方法调用多次!!!

我在model里判断,当picUrl==""的时候,赋个非空字符串值就可以了


引用http://www.iteye.com/topic/122566?page=2