Skip to content

Commit

Permalink
Merge pull request #83 from ropalka/UNDERTOW-2317
Browse files Browse the repository at this point in the history
[UNDERTOW-2317] Undertow Jastow JSP implementation must return specification version 3.1 for Jakarta EE 10 Specification
  • Loading branch information
fl4via committed Oct 10, 2023
2 parents a7159f6 + 9b5fbae commit 0d10c32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/jasper/compiler/Generator.java
Expand Up @@ -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,");
Expand Down
Expand Up @@ -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 =
Expand Down

0 comments on commit 0d10c32

Please sign in to comment.