<%--刷新验证码--%>
<script>
window.onload = function(){
document.getElementById("img").onclick = function(){
this.src="${pageContext.request.contextPath}/checkcode?time="+new Date().getTime();
}
}
</script>
<%--刷新验证码--%>
<script>
window.onload = function(){
document.getElementById("验证码图片ID").onclick = function(){
this.src="验证码文件路径?time="+new Date().getTime();
}
}
</script>
<tr>
<td colspan="2"><img id="img" src="pageContext.request.contextPath}/checkcode"></td>
</tr>