Avoid using a .jsp extension for JSP fragments

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"%>
Solution
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"%>