这一行:
/${initParam['webinf']}${initParam['test']}header.jsp
打印出来:
/WEB-INF/test/header.jsp
如果我将其复制到:
<%@ include file="/WEB-INF/test/header.jsp" %>
它完美无缺。
但是,如果我在语句中直接使用第一行代码:
<%@ include file="/${initParam['webinf']}${initParam['test']}header.jsp" %>
我收到错误:
Sun Feb 16 15:03:56 GMT 2014: org.apache.jasper.JasperException: /WEB-INF/test/index.jsp (line: 10, column: 9) File "/${initParam['webinf']}${initParam['test']}header.jsp" not found
答案 0 :(得分:3)