Home > Web Front-end > HTML Tutorial > 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
Release: 2016-06-24 11:37:09
Original
2005 people have browsed it

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


回复讨论(解决方案)

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

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

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

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template