如果一直为jsp的缓存问题困扰的话,可以试试在jsp中加入以下几句话:
<head>
<meta http-equiv="Cache-Control" content="max-age=0" forua="true" />
<meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
<meta http-equiv="Cache-Control" content="must-revalidate" forua="true" />
</head>
max-age=30 就表示缓存的最长存在时间是30s,no-cache表示无缓存,must-revalidate表示每次访问必须重新验证是否有更新!