xiaotao123

<jsp:include page="<%=path %>/include.jsp"></jsp:include> 

报错:attribute for %>" is not properly terminated 

原因:标签的page属性值可以是相对路径URL或者<%=表达式 %>,但同时只能存在其中一种

<jsp:include page="/frame/include.jsp"></jsp:include> 表示绝对路径

 <jsp:include page="frame/include.jsp"></jsp:include> 表示相对路径

<jsp:include page="<%=path %>"></jsp:include> 两个引号与<%=path%>之间不能有空格

分类:

技术点:

相关文章:

  • 2021-05-09
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2021-07-31
  • 2021-12-07
  • 2021-04-30
  • 2022-12-23
猜你喜欢
  • 2021-05-24
  • 2022-01-04
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案