From 9b5fbae17b6ad5ebf019e533cd801b7c26b3b451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Op=C3=A1lka?= Date: Mon, 9 Oct 2023 13:15:42 +0200 Subject: [PATCH] [UNDERTOW-2317] Undertow Jastow JSP implementation must return specification version 3.1 for Jakarta EE 10 Specification --- src/main/java/org/apache/jasper/compiler/Generator.java | 2 +- src/main/java/org/apache/jasper/runtime/JspFactoryImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/jasper/compiler/Generator.java b/src/main/java/org/apache/jasper/compiler/Generator.java index b2f2a7f..8122ad3 100644 --- a/src/main/java/org/apache/jasper/compiler/Generator.java +++ b/src/main/java/org/apache/jasper/compiler/Generator.java @@ -839,7 +839,7 @@ private void generatePreamble(Node.Nodes page) throws JasperException { out.println(");"); if (ctxt.getOptions().isXpoweredBy()) { - out.printil("response.addHeader(\"X-Powered-By\", \"JSP/2.3\");"); + out.printil("response.addHeader(\"X-Powered-By\", \"JSP/3.1\");"); } out.printil("pageContext = _jspxFactory.getPageContext(this, request, response,"); diff --git a/src/main/java/org/apache/jasper/runtime/JspFactoryImpl.java b/src/main/java/org/apache/jasper/runtime/JspFactoryImpl.java index 64438fa..1724a1d 100644 --- a/src/main/java/org/apache/jasper/runtime/JspFactoryImpl.java +++ b/src/main/java/org/apache/jasper/runtime/JspFactoryImpl.java @@ -38,7 +38,7 @@ */ public class JspFactoryImpl extends JspFactory { - private static final String SPEC_VERSION = "2.3"; + private static final String SPEC_VERSION = "3.1"; private static final boolean USE_POOL = Boolean.valueOf(System.getProperty("org.apache.jasper.runtime.JspFactoryImpl.USE_POOL", "true")).booleanValue(); private static final int POOL_SIZE =