0
我的问题很简单,所以应该是解决方案。 :PJSP包含页面使用参数
我有两个文件。
的index.jsp
<%
String title = "Homepage";
String desc = "...'";
String root = ".";
String include = "content-index.jsp";
%>
<%@ include file="layout.jsp"%>
而且我layout.jsp
...
<jsp:include page="{include}"/>
...
我想从参数index.jsp.include内容使用到该文件中包含的语句。 这不会给我任何错误消息,但它也会返回页面内容应该出现的空白块。
这种挣扎了一会儿我看到后,那么这 <%@ taglib伪URI =“HTTP:// java的。 sun.com/jsp/jstl/core”前缀= “C” %>