out.print()问题为什么会出现out.print(变量a)输出内容无法改变的问题,debug变量a的值确实改变了,但是页面上就是不会改变。页面已经设置 response.setHeader("Pragma","no-cache");response.setHeader("Cache-Control","no-cache");了[解决办法]这种问题通常都是低级错误造成的。把变量a换成一个其他东西试试,譬如说一个常量字符串[解决办法](请求转发)你写的是(重定向)