request.getAttribute得到的是object要转型 bject转换成int型 int xuefen=(Integer)request.getAttribute("xuefen"); Done