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.
Example<%@include file="/errors.jsp"%>
<%@include file="/errors.jspf"%>