var mycode="<%=session.getAttribute("code")%>"; 说明:session中设置过setAttribute("code",sessionVar); 但是获取的好像只能是字符串. 相关文章: