守则:
...
<c:set var="moduleIncPage" value="${moduleIncPage}" scope="request"></c:set>
...
<c:if test="${not empty model.document.module}">
<jsp:include page="<%=moduleIncPage %>" flush="true" />
</c:if>
...
“错误”显示在&lt;%= moduleIncPage&amp;&gt;上的“m”处:
Multiple annotations found at this line:
- Syntax error, insert ")" to complete
MethodInvocation
- Syntax error, insert ";" to complete Statement
- Syntax error, insert ";" to complete Statement
- Syntax error, insert ")" to complete
感谢。
答案 0 :(得分:1)
您不能将标记放在标记属性中,此行无效(不符合XHTML):
<jsp:include page="<%=moduleIncPage %>" flush="true" />
你应该这样做:
<jsp:include page="${moduleIncPage}" flush="true" />
查看代码突出显示,您已经看到了错误!