function change() {
var img=document.getElementById("verifyCode");
img.src="${pageContext.request.contextPath}/varifyCode.action?"+new Date().getTime();
alert(img.src);
}
img id="varifyCode" class=" captchaImage" src="${pageContext.request.contextPath}/verifyCode.action" onclick="change()"
action名字都错了。。自己好好对比看看。。。verifyCode...varifyCode
src="${pageContext.request.contextPath}/verifyCode.action"
img.src="${pageContext.request.contextPath}/varifyCode.action?"+new Date().getTime();
大哥图挂了.还有这是js相关的问题.和jsp没关系.
用jquery写或者清理缓存,可是试试attr方法