你把类型强转改成request.getAttribute("jsonArray").toString()试试或者你前台其实就要个String ,你setAtribute时先用jsonArray的toString()方法把他转为字符串再set进来不就不用再jsp类型转换了!