The method getContextPath() is undefined for the type ServletContext

前端 未结 1 1326
野性不改
野性不改 2021-01-21 15:08

Here is my JSP:



path : <%= application.getContextPath() %>


This file is correct in

相关标签:
1条回答
  • 2021-01-21 15:54

    The getContextPath() method was added to ServletContext in version 2.5 of the spec, but Tomcat 5 only implements 2.4. However, request.getContextPath() does the same thing.

    0 讨论(0)
提交回复
热议问题