JSP fragments are JSP code statically included into another JSP
at translation time using the <%@ include
file="..."%> directives. All JSP files are expected to
compile. However, JSP fragments are not meant to compile on their
own. It is therefore recommended that such files use a .jspf file
extension. This prevents the JSP compiler from attempting to compile
the files, and it will prevent a user from making a request to such a
file.
<%@include file="/errors.jsp"%>
|
Change the file extension of the included file from .jsp to
.jspf and update all include directives that refer to that
file.
<%@include file="/errors.jspf"%>
|