Home  >  Article  >  Web Front-end  >  jsp path cannot be resolved to a variable_html/css_WEB-ITnose

jsp path cannot be resolved to a variable_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:37:091964browse

这怎么回事啊,刚刚学这个,请大神解答


回复讨论(解决方案)

 你也不想想path怎么来的。
在标签上面加上这一段

<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>

或者你把path改成request.getContextPath()这个
<%=request.getContextPath()%>

多谢大神,哇啊哈哈哈,加个关注,以后不懂了希望还能向你请教啊

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn