最佳答案:可以,只不过是取值时要转换成相应的类型.比如数组session.setAttribute("str", new String[]{"a","b"});/