【发布时间】:2015-05-26 21:55:15
【问题描述】:
我在 spring mvc 应用程序中使用 ModelAndView 对象传递了文件名。但我无法解决这个编译问题。我是 WEB 开发的新手。
以下是我的jsp页面的内容。
<% String pageRed = "static/" + (String)request.getAttribute("redPage"); %>
<%@ include file="<%=pageRed %>" %>
包含文件行给出以下错误
Multiple annotations found at this line:
- Start tag (<jsp:directive.include>) not closed properly, expected '>'.
- A file value is required in this directive
- Invalid location of text ("<%=pageRed %>" %) in tag
(<jsp:directive.include>).
有什么想法吗?
【问题讨论】: