求助,img标签中,path是什么用处?然后为什么编译的时候是错的
如下一行代码,其中src = "<%=path%>"/html/images/logo.png,为何用了个path,然后为何编译的时候path是错的?
<img id="logo-img" src="<%=path%>/html/images/logo.png" width="617" height="65" />
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>