error:The method getServletContext() is undefined for the type HttpServletRequest 10
Anerroroccurredatline:41inthejspfile:/hy/logisticsManagement.jspThemethodgetServletCo...
An error occurred at line: 41 in the jsp file: /hy/logisticsManagement.jsp
The method getServletContext() is undefined for the type HttpServletRequest
38: <%
39: CommDAO cd = new CommDAO();
40: List<SimpleHy> l = cd.getAllSimpleHy();
41: ServletContext sc = request.getServletContext();
42: Date d = (Date)sc.getAttribute("date");
43: Integer uid = (Integer)sc.getAttribute("uid");
44: if(d == null || uid == null){
这个问题怎么办 展开
The method getServletContext() is undefined for the type HttpServletRequest
38: <%
39: CommDAO cd = new CommDAO();
40: List<SimpleHy> l = cd.getAllSimpleHy();
41: ServletContext sc = request.getServletContext();
42: Date d = (Date)sc.getAttribute("date");
43: Integer uid = (Integer)sc.getAttribute("uid");
44: if(d == null || uid == null){
这个问题怎么办 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询