在servlet中写入request.setAttribute("flag"); vm页面中这样写 #set($flag=$request.getAttribute("flag")) flag=$!flag;