Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一堆 jsps 使用 include 指令从其他文件中提取内容
<%@ include file=".jsp"%>
我已经移动了开发环境(以 JBOSS 作为服务器的 JBuilder 2008),现在包含的文件导致编译错误。
我知道它们在包含 jsp 的上下文之外不是有效的 JSP。但是我想停止预编译,以便我可以运行 JSP,并且在运行时一切都会好起来的。这可能吗?
我遇到过这样的事情。一种可能的解决方法是对包含的文件使用不同的文件后缀,这样开发环境就不会尝试编译它们。
您可以使用 .jspf 扩展名(JSP 片段),因此它们不会被视为 jsp 页面,因此它们将在编译时进行编译