request.getAttribute得到的是object要转型

bject转换成int型

int xuefen=(Integer)request.getAttribute("xuefen");

Done

原文地址:https://www.cnblogs.com/xingyyy/p/3734151.html