在实际编程时,可以使用getServletContext()来替代application.
出自:湖南大学-网络编程