jsp页面中调用了this.getServletContext() 方法,在 tomcat 下没问题,但部署在 weblogic 下就报错了。
链接地址:http://stackoverflow.com/questions/2964250/jsp-getservletcontext-error
由于 weblogic 下不能这样获取,可以通过 getServletConfig().getServletContext() 这样来获取 servletContext 。
jsp页面中调用了this.getServletContext() 方法,在 tomcat 下没问题,但部署在 weblogic 下就报错了。
链接地址:http://stackoverflow.com/questions/2964250/jsp-getservletcontext-error
由于 weblogic 下不能这样获取,可以通过 getServletConfig().getServletContext() 这样来获取 servletContext 。