@@ -0,0 +1,1334 @@
+package io.undertow.jsp;%0A%0Aimport io.undertow.server.HandlerWrapper;%0Aimport io.undertow.server.HttpHandler;%0Aimport io.undertow.server.HttpServerExchange;%0Aimport io.undertow.servlet.handlers.ServletRequestContext;%0Aimport org.apache.jasper.Constants;%0A%0Aimport javax.servlet.ServletRequest;%0A%0Apublic class JspFileHandler implements HttpHandler %7B%0A%0A    private final String jspFile;%0A    private final HttpHandler next;%0A%0A    public JspFileHandler(final String jspFile, final HttpHandler next) %7B%0A        this.jspFile = jspFile;%0A        this.next = next;%0A    %7D%0A%0A    @Override%0A    public void handleRequest(final HttpServerExchange exchange) throws Exception %7B%0A        ServletRequest request = exchange.getAttachment(ServletRequestContext.ATTACHMENT_KEY).getServletRequest();%0A        Object old = request.getAttribute(Constants.JSP_FILE);%0A        try %7B%0A            request.setAttribute(Constants.JSP_FILE, jspFile);%0A            next.handleRequest(exchange);%0A        %7D finally %7B%0A            request.setAttribute(Constants.JSP_FILE, old);%0A        %7D%0A    %7D%0A%0A    public static HandlerWrapper jspFileHandlerWrapper(final String jspFile) %7B%0A        return new HandlerWrapper() %7B%0A            @Override%0A            public HttpHandler wrap(HttpHandler handler) %7B%0A                return new JspFileHandler(jspFile, handler);%0A            %7D%0A        %7D;%0A    %7D%0A%7D%0A

Add JspFileHandler