网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  jsp path cannot be resolved to a variable解决方法

jsp path cannot be resolved to a variable解决方法

分类: IT文章 • 2024-11-30 20:47:13
jsp path cannot be resolved to a variable
这怎么回事啊,刚刚学这个,请大神解答
jsp path cannot be resolved to a variable解决方法
------解决思路----------------------
 你也不想想path怎么来的。
在<!doctype>标签上面加上这一段
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

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

相关推荐

  • Vivado HLS error: Cannot find ISE in the PATH variable or it's an unsupported version
  • cannot be resolved to a type 错误解决方法
  • Java问题解决:The project cannot be built until build path errors are resolved
  • R cannot be resolved to a variable 解决方法
  • 解决jsp引用其他项目时出现的 cannot be resolved to a type异常
  • R cannot be resolved to a variable android
  • jsp path cannot be resolved to a variable解决方法
  • Eclipse新建工程编译R cannot be resolved to a variable有关问题
  • r cannot be resolved to a variable
  • 使用Maven创建Web项目后,jsp引出静态文件提示报错。JSP 报错:javax.servlet.ServletException cannot be resolved to a type
  • CSS3伪类nth-child组合transiton动画实现文字若影若现
  • 使用 data- 属性回嵌入自定义数据
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号