在Eclipse for Java EE developers edition中禁用HTML警告
我正在使用Eclipse for Java EE开发一个Web应用程序。我有一些JSP文件,这些文件都是用HTML文件构建的。我的索引。jsp如下所示:
<jsp:include page="include/top.html" />
<title>Title!</title>
<jsp:include page="include/header.html" />
<jsp:include page="include/menu.html" />
<div class="span-15 prepend-1 last">
<h6>What is an <a href="http://en.wikipedia.org/wiki/Application_programming_interface">API</a>?</h6>
<p>An application programming interface (API) is an interface that software programs implement in order to allow other software to interact with it; much in the same way that software might implement a User interface in order to allow humans to interact with it.</p>
</div>
<jsp:include page="include/footer.html" />
问题在于包含页脚。html如下所示:
<hr />
<h3 class="alt"><b><a href="/copyright.html">Copyright</a> © 2009</b> My Company. All rights reserved.</h3>
<hr />
<p>
Visit <a href="/">Home</a>
</p>
</div>
</body>
</html>
它被放在大多数页面的底部。我对这些警告消息感到非常恼火,比如Invalid location of tag (body).
我知道它在这个文件中无效,但另一边属于header。html
在Java类中,可以使用@SuppressWarnings("serial")
之类的内容来抑制警告。。。有没有办法用这些HTML或JSP文件做类似的事情
共 (0) 个答案