public < T > T getSessionAttr ( String key ) { HttpSession session = request . getSession ( false ) ; return session != null ? ( T ) session . getAttribute ( key ) : null ; }
Return a Object from session .