codice:
ServletContext application = request.getSession().getServletContext();
application.getAttribute("nome");