bundles/org.apache.jasper.glassfish/src/org/apache/jasper/servlet/JspServletWrapper.java
private void jspFileNotFound(HttpServletRequest request,
                                 HttpServletResponse response)
            throws ServletException, IOException {

        FileNotFoundException fnfe = new FileNotFoundException(jspUri);

        ctxt.incrementRemoved();
        String includeRequestUri = (String)
            request.getAttribute("javax.servlet.include.request_uri");
        if (includeRequestUri != null) {
            // This file was included. Throw an exception as
            // a response.sendError() will be ignored by the
            // servlet engine.
            throw new ServletException(fnfe);
        } else {
            try {
                response.sendError(HttpServletResponse.SC_NOT_FOUND, 
                                   fnfe.getMessage());
            } catch (IllegalStateException ise) {
                log.log(Level.SEVERE,
                        Localizer.getMessage("jsp.error.file.not.found",
                                             fnfe.getMessage()),
                        fnfe);
            }
        }
    }
private void jspFileNotFound(HttpServletRequest request,
                                 HttpServletResponse response)
            throws ServletException, IOException {

        FileNotFoundException fnfe = new FileNotFoundException(jspUri);

        ctxt.incrementRemoved();
        String includeRequestUri = (String)
            request.getAttribute("javax.servlet.include.request_uri");
        if (includeRequestUri != null) {
            // This file was included. Throw an exception as
            // a response.sendError() will be ignored by the
            // servlet engine.
            throw new ServletException(fnfe);
        } else {
            try {
                response.sendError(HttpServletResponse.SC_NOT_FOUND, 
                                   fnfe.getMessage());
            } catch (IllegalStateException ise) {
                log.log(Level.SEVERE,
                        Localizer.getMessage("jsp.error.file.not.found",
                                             fnfe.getMessage()),
                        fnfe);
            }
        }
    }
private void jspFileNotFound ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { FileNotFoundException fnfe = new FileNotFoundException ( jspUri ) ; ctxt . incrementRemoved ( ) ; String includeRequestUri = ( String ) request . getAttribute ( "javax.servlet.include.request_uri" ) ; if ( includeRequestUri != null ) { // This file was included. Throw an exception as // a response.sendError() will be ignored by the // servlet engine. throw new ServletException ( fnfe ) ; } else { try { response . sendError ( HttpServletResponse . SC_NOT_FOUND , fnfe . getMessage ( ) ) ; } catch ( IllegalStateException ise ) { log . log ( Level . SEVERE , Localizer . getMessage ( "jsp.error.file.not.found" , fnfe . getMessage ( ) ) , fnfe ) ; } } }
/*
Handles the case where a requested JSP file no longer exists.
/ * Handles the case where a requested JSP file no longer exists .