The method getServletContext is undefined for the type HttpServletRequest
程序员文章站
2022-07-15 13:22:50
...
ServletContext servletContext = request.getServletContext();
在myeclipse中,request中没有getServletContext()方法。出错原因,jar包版本不一致
可以改写为
ServletContext servletContext = getServletContext();
上一篇: The method getJspApplicationContext(ServletContext) is undefined for the type
下一篇: android开发:The method getSupportFragmentManager() is undefined for the type
推荐阅读
-
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
-
The method setBuiltInZoomControls(boolean) is undefined for the type MapView
-
The method getDispatcherType() is undefined for the type HttpServletRequest
-
The method getJspApplicationContext(ServletContext) is undefined for the type Js
-
The method getJspApplicationContext(ServletContext) is undefined for the type
-
The method getServletContext is undefined for the type HttpServletRequest
-
android开发:The method getSupportFragmentManager() is undefined for the type
-
The method getJspApplicationContext(ServletContext) is undefined for the type Js
-
The method getJspApplicationContext(ServletContext) is undefined for the type Js