If the purpose of that variable is only for success or error message, i would use request.setAttribute().
session.setAttribute() will keep that value through out the entire session, where as request.setAttribute() will keep that value available up to the life cycle of that request object.