session.getAttribute为空String.equal()报错

技术教程 · 2014-10-24

if(session.getAttribute("manager")==null)

{}

else

{String manager2=session.getAttribute("manager").toString();

//这才能取,要不为空就会出错}

Theme Jasmine by Kent Liao