diff --git a/.github_changelog_generator b/.github_changelog_generator index 073fac8..19e45d2 100644 --- a/.github_changelog_generator +++ b/.github_changelog_generator @@ -1 +1 @@ -future-release=1.0.6 +future-release=1.1.0 diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 61a9130..fb7f4a8 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 2ce963b..c55072b 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,5 +1,8 @@ - + + + + \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 15337f6..5a59454 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [1.0.5](https://github.com/ethauvin/HttpStatus/tree/1.0.5) (2021-03-19) +## [1.0.5](https://github.com/ethauvin/HttpStatus/tree/1.0.5) (2021-03-20) [Full Changelog](https://github.com/ethauvin/HttpStatus/compare/1.0.4...1.0.5) diff --git a/LICENSE.txt b/LICENSE.txt index 2fba8ed..bc71010 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright (c) 2015-2021, Erik C. Thauvin (erik@thauvin.net) +Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net) All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/README.md b/README.md index a8f2c4c..cabb8b2 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Include the following in your `build.gradle` file: ```gradle dependencies { - implementation 'net.thauvin.erik.httpstatus:httpstatus:1.0.6' + implementation 'net.thauvin.erik.httpstatus:httpstatus:1.1.0' } ``` @@ -47,7 +47,7 @@ or as a Maven artifact: net.thauvin.erik.httpstatus httpstatus - 1.0.6 + 1.1.0 ``` @@ -250,7 +250,7 @@ Status Code | Reason You can query the reason phrase for status codes as follows: ```sh -$ java -jar httpstatus-1.0.6.jar 404 500 +$ java -jar httpstatus-1.1.0.jar 404 500 404: Not Found 500: Internal Server Error ``` @@ -258,7 +258,7 @@ $ java -jar httpstatus-1.0.6.jar 404 500 If no status code is specified, all will be printed: ```sh -$ java -jar httpstatus-1.0.6.jar +$ java -jar httpstatus-1.1.0.jar 100: Continue 101: Switching Protocols 102: Processing diff --git a/appveyor.yml b/appveyor.yml index 877b3ed..9747d51 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -16,7 +16,7 @@ test_script: branches: only: - master - - 1.0.6-dev + - 1.1.0-dev cache: - C:\Users\appveyor\.gradle diff --git a/build.gradle b/build.gradle index 9b02669..12a7d51 100644 --- a/build.gradle +++ b/build.gradle @@ -8,8 +8,8 @@ plugins { id 'pmd' id 'com.github.ben-manes.versions' version '0.42.0' id 'net.thauvin.erik.gradle.semver' version '1.0.4' - id 'com.github.spotbugs' version '5.0.6' - id 'org.sonarqube' version '3.3' + id 'com.github.spotbugs' version '5.0.10' + id 'org.sonarqube' version '3.4.0.2513' } import com.github.spotbugs.snom.SpotBugsTask @@ -33,8 +33,8 @@ mainClassName = 'net.thauvin.erik.httpstatus.Reasons' ext { versions = [ - pmd: '6.35.0', - spotbugs: '4.6.0' + pmd : '6.47.0', + spotbugs: '4.7.1' ] } @@ -45,9 +45,13 @@ repositories { } dependencies { - compileOnly 'javax.servlet:javax.servlet-api:4.0.1' - compileOnly 'javax.servlet.jsp:jsp-api:2.2.1-b03' - compileOnly 'javax.el:javax.el-api:3.0.1-b06' +// compileOnly 'javax.servlet:javax.servlet-api:4.0.1' +// compileOnly 'javax.servlet.jsp:jsp-api:2.2.1-b03' +// compileOnly 'javax.el:javax.el-api:3.0.1-b06' + + compileOnly 'jakarta.servlet:jakarta.servlet-api:6.0.0' + compileOnly 'jakarta.servlet.jsp:jakarta.servlet.jsp-api:3.1.0' + compileOnly 'jakarta.el:jakarta.el-api:5.0.1' spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.12.0' spotbugsPlugins 'com.mebigfatguy.sb-contrib:sb-contrib:7.4.7' @@ -55,7 +59,7 @@ dependencies { compileOnly "com.github.spotbugs:spotbugs-annotations:$versions.spotbugs" testCompileOnly "com.github.spotbugs:spotbugs-annotations:$versions.spotbugs" - testImplementation 'org.testng:testng:7.5' + testImplementation 'org.testng:testng:7.6.1' } tasks.withType(JavaCompile) { @@ -63,8 +67,8 @@ tasks.withType(JavaCompile) { } java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 withJavadocJar() withSourcesJar() } @@ -106,7 +110,7 @@ spotbugs { } pmd { - toolVersion = versions.pmd + toolVersion = versions.pmd ignoreFailures = true ruleSets = [] ruleSetFiles = files("${projectDir}/config/pmd.xml") @@ -160,7 +164,7 @@ publishing { url = project.version.contains('SNAPSHOT') ? 'https://oss.sonatype.org/content/repositories/snapshots/' : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' - } + } credentials(PasswordCredentials) } } @@ -173,7 +177,11 @@ signing { task copyToDeploy(type: Copy) { from(configurations.runtimeClasspath) { - exclude('javax.servlet-api-*.jar', 'jsp-api-*.jar') + exclude('javax.servlet-api-*.jar', + 'jsp-api-*.jar', + 'jakarta.servlet-*.jar', + 'jakarta-servlet.*.jar', + 'jakarta.el-api*.jar') } from jar into deployDir @@ -197,12 +205,12 @@ task release { task pandoc(type: Exec) { group = 'Documentation' final def pandoc_args = ['--from', 'gfm', - '--to', 'html5', - '--metadata', "pagetitle=$mavenDescription", - '-s', - '-c', 'github-pandoc.css', - '-o', 'docs/README.html', - 'README.md'] + '--to', 'html5', + '--metadata', "pagetitle=$mavenDescription", + '-s', + '-c', 'github-pandoc.css', + '-o', 'docs/README.html', + 'README.md'] if (Os.isFamily(Os.FAMILY_WINDOWS)) { commandLine(['cmd', '/c', 'pandoc'] + pandoc_args) } else { @@ -216,7 +224,7 @@ task pandoc(type: Exec) { } jacoco { - toolVersion = '0.8.9-SNAPSHOT' + toolVersion = '0.8.9-SNAPSHOT' } jacocoTestReport { diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..0497b23 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +./gradlew deploy +[ $? -eq 0 ] && scp deploy/*.jar nix3.thauvin.us:/opt/lib/jtalk-ee/httpstatus diff --git a/docs/README.html b/docs/README.html index 4afcd01..f4eafc6 100644 --- a/docs/README.html +++ b/docs/README.html @@ -15,6 +15,7 @@ pre > code.sourceCode { white-space: pre; position: relative; } pre > code.sourceCode > span { display: inline-block; line-height: 1.25; } pre > code.sourceCode > span:empty { height: 1.2em; } + .sourceCode { overflow: visible; } code.sourceCode > span { color: inherit; text-decoration: inherit; } div.sourceCode { margin: 1em 0; } pre.sourceCode { margin: 0; } @@ -49,7 +50,7 @@ code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */ code span.at { color: #7d9029; } /* Attribute */ code span.bn { color: #40a070; } /* BaseN */ - code span.bu { } /* BuiltIn */ + code span.bu { color: #008000; } /* BuiltIn */ code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */ code span.ch { color: #4070a0; } /* Char */ code span.cn { color: #880000; } /* Constant */ @@ -62,7 +63,7 @@ code span.ex { } /* Extension */ code span.fl { color: #40a070; } /* Float */ code span.fu { color: #06287e; } /* Function */ - code span.im { } /* Import */ + code span.im { color: #008000; font-weight: bold; } /* Import */ code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */ code span.kw { color: #007020; font-weight: bold; } /* Keyword */ code span.op { color: #666666; } /* Operator */ @@ -74,46 +75,86 @@ code span.va { color: #19177c; } /* Variable */ code span.vs { color: #4070a0; } /* VerbatimString */ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */ + .display.math{display: block; text-align: center; margin: 0.5rem auto;} +

HttpStatus JSP Tag Library

-

Release Maven Central
-License (3-Clause BSD) Known Vulnerabilities Quality Gate Status
-GitHub CI Build status CircleCI

-

A simple JSP Tag Library to display the code, reason, cause and/or message for HTTP status codes in JSP error pages.

+


+
+

+

A simple JSP +Tag Library to display the code, reason, cause and/or message for HTTP +status codes in JSP error pages.

For example:

-
<%@ page isErrorPage="true" %>
-<%@ taglib prefix="hs" uri="http://erik.thauvin.net/taglibs/httpstatus" %>
-<html><head>
-<title><hs:code/> <hs:reason default="Server Error"/></title>
-</head>
-<h1><hs:reason default="Server Error"/></h1>
-Cause: <pre><hs:cause default="Unable to complete your request."/></pre>
-Message: <pre><hs:message default="A server error has occured."/></pre>
-...
+
<%@ page isErrorPage="true" %>
+<%@ taglib prefix="hs" uri="http://erik.thauvin.net/taglibs/httpstatus" %>
+<html><head>
+<title><hs:code/> <hs:reason default="Server Error"/></title>
+</head>
+<h1><hs:reason default="Server Error"/></h1>
+Cause: <pre><hs:cause default="Unable to complete your request."/></pre>
+Message: <pre><hs:message default="A server error has occured."/></pre>
+...

or

-
<%@ page isErrorPage="true" import="net.thauvin.erik.httpstatus.Reasons" %>
-<%= Reasons.getReasonPhrase(pageContext.getErrorData().getStatusCode()) %>
-

would display on a 501 status code:

-
Not Implemented
-
-

Usage with Gradle or Maven

+
<%@ page isErrorPage="true" import="net.thauvin.erik.httpstatus.Reasons" %>
+<%= Reasons.getReasonPhrase(pageContext.getErrorData().getStatusCode()) %>
+

would display on a 501 +status code:

+
Not Implemented
+

Usage with Gradle or Maven

Include the following in your build.gradle file:

-
dependencies {
-    implementation 'net.thauvin.erik.httpstatus:httpstatus:1.0.6'
-}
-
+
dependencies {
+    implementation 'net.thauvin.erik.httpstatus:httpstatus:1.1.0'
+}

or as a Maven artifact:

-
<dependency>
-    <groupId>net.thauvin.erik.httpstatus</groupId>
-    <artifactId>httpstatus</artifactId>
-    <version>1.0.6</version>
-</dependency>
+
<dependency>
+    <groupId>net.thauvin.erik.httpstatus</groupId>
+    <artifactId>httpstatus</artifactId>
+    <version>1.1.0</version>
+</dependency>

hs:cause

-

The <hs:cause/> tag displays the cause of current HTTP status code, if any. A shorthand for:

-
<%= pageContext.getErrorData().getThrowable().getCause().getLocalizedMessage() %>
+

The <hs:cause/> tag displays the cause of current +HTTP status code, if any. A shorthand for:

+
<%= pageContext.getErrorData().getThrowable().getCause().getLocalizedMessage() %>

Optional attributes are:

@@ -129,16 +170,22 @@ - +
escapeXmlConverts <, >, &, ', " to their corresponding entity codes. Value is true by default.Converts <, >, &, ', " to their corresponding entity codes. +Value is true by default.

hs:code

-

The <hs:code/> tag displays the current HTTP status code, if any. A shorthand for:

-
<%= pageContext.getErrorData().getStatusCode() %>
+

The <hs:code/> tag displays the current HTTP +status code, if any. A shorthand for:

+
<%= pageContext.getErrorData().getStatusCode() %>

hs:message

-

The <hs:message/> tag displays the current error message, if any. A shorthand for:

-
<%= request.getAttribute("javax.servlet.error.message") %>
+

The <hs:message/> tag displays the current error +message, if any. A shorthand for:

+
<%= request.getAttribute("javax.servlet.error.message") %>

Optional attributes are:

@@ -154,12 +201,15 @@ - +
escapeXmlConverts <, >, &, ', " to their corresponding entity codes. Value is true by default.Converts <, >, &, ', " to their corresponding entity codes. +Value is true by default.

hs:reason

-

The <hs:reason/> tag displays the reason for a HTTP status code, if any. Optional attributes are:

+

The <hs:reason/> tag displays the reason for a +HTTP status code, if any. Optional attributes are:

@@ -170,7 +220,8 @@ - + @@ -178,38 +229,43 @@ - +
codeThe HTTP status error code. If not specified the current status code is used.The HTTP status error code. If not specified the current status code +is used.
default
escapeXmlConverts <, >, &, ', " to their corresponding entity codes. Value is true by default.Converts <, >, &, ', " to their corresponding entity codes. +Value is true by default.

StatusCode Bean

-

The StatusCode bean can be used to check the class of the status code error. For example, using the JSTL:

-
<%@ taglib prefix="hs" uri="http://erik.thauvin.net/taglibs/httpstatus" %>
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
-
-<jsp:useBean id="statusCode" class="net.thauvin.erik.httpstatus.StatusCode"/>
-<c:set target="${statusCode}" property="code"><hs:code/></c:set>
-<c:choose>
-    <c:when test="${statusCode.isClientError()}">
-        An error occurred on your side. (<hs:reason/>)
-    </c:when>
-    <c:otherwise>
-        An error occurred on our side. (<hs:message/>)
-    </c:otherwise>
-</c:choose>
+

The StatusCode bean can be used to check the class of +the status code error. For example, using the JSTL:

+
<%@ taglib prefix="hs" uri="http://erik.thauvin.net/taglibs/httpstatus" %>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+
+<jsp:useBean id="statusCode" class="net.thauvin.erik.httpstatus.StatusCode"/>
+<c:set target="${statusCode}" property="code"><hs:code/></c:set>
+<c:choose>
+    <c:when test="${statusCode.isClientError()}">
+        An error occurred on your side. (<hs:reason/>)
+    </c:when>
+    <c:otherwise>
+        An error occurred on our side. (<hs:message/>)
+    </c:otherwise>
+</c:choose>

or in a Servlet:

-
import net.thauvin.erik.httpstatus.StatusCode;
-
-// ---
-
-StatusCode statusCode = new StatusCode((Integer) request.getAttribute("javax.servlet.error.status_code"));
-if (statusCode.isError()) {
-    if (statusCode.isServerError()) {
-        String reason = statusCode.getReason();
-    } else {
-        // ...
-    }
-}
+
import net.thauvin.erik.httpstatus.StatusCode;
+
+// ---
+
+StatusCode statusCode = new StatusCode((Integer) request.getAttribute("javax.servlet.error.status_code"));
+if (statusCode.isError()) {
+    if (statusCode.isServerError()) {
+        String reason = statusCode.getReason();
+    } else {
+        // ...
+    }
+}

The StatusCode bean methods are:

@@ -221,7 +277,8 @@ - + @@ -254,7 +311,9 @@
getReasonReturns the reason for the status code (eg: Internal Server Error)Returns the reason for the status code (eg: +Internal Server Error)
isClientError

Reasons

-

The reasons are defined in a ResourceBundle properties as follows:

+

The reasons are defined in a ResourceBundle +properties as follows:

@@ -631,25 +690,27 @@

Command Line Usage

You can query the reason phrase for status codes as follows:

-
$ java -jar httpstatus-1.0.6.jar 404 500
-404: Not Found
-500: Internal Server Error
+
$ java -jar httpstatus-1.1.0.jar 404 500
+404: Not Found
+500: Internal Server Error

If no status code is specified, all will be printed:

-
$ java -jar httpstatus-1.0.6.jar
-100: Continue
-101: Switching Protocols
-102: Processing
-103: Early Hints
-200: OK
-201: Created
-202: Accepted
-203: Non-Authoritative Information
-204: No Content
-205: Reset Content
-206: Partial Content
-207: Multi-Status
-208: Already Reported
-226: IM Used
-...
+
$ java -jar httpstatus-1.1.0.jar
+100: Continue
+101: Switching Protocols
+102: Processing
+103: Early Hints
+200: OK
+201: Created
+202: Accepted
+203: Non-Authoritative Information
+204: No Content
+205: Reset Content
+206: Partial Content
+207: Multi-Status
+208: Already Reported
+226: IM Used
+...
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 41d9927..249e583 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index aa991fc..ae04661 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 1b6c787..a69d9cb 100755 --- a/gradlew +++ b/gradlew @@ -205,6 +205,12 @@ set -- \ org.gradle.wrapper.GradleWrapperMain \ "$@" +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + # Use "xargs" to parse quoted args. # # With -n1 it outputs one arg per line, with the quotes and backslashes removed. diff --git a/gradlew.bat b/gradlew.bat index 107acd3..f127cfd 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -14,7 +14,7 @@ @rem limitations under the License. @rem -@if "%DEBUG%" == "" @echo off +@if "%DEBUG%"=="" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @@ -25,7 +25,7 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. +if "%DIRNAME%"=="" set DIRNAME=. set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute +if %ERRORLEVEL% equ 0 goto execute echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. @@ -75,13 +75,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar :end @rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd +if %ERRORLEVEL% equ 0 goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% :mainEnd if "%OS%"=="Windows_NT" endlocal diff --git a/src/main/java/net/thauvin/erik/httpstatus/taglibs/CauseTag.java b/src/main/java/net/thauvin/erik/httpstatus/taglibs/CauseTag.java index df4f7e8..63fc6b7 100644 --- a/src/main/java/net/thauvin/erik/httpstatus/taglibs/CauseTag.java +++ b/src/main/java/net/thauvin/erik/httpstatus/taglibs/CauseTag.java @@ -32,10 +32,10 @@ package net.thauvin.erik.httpstatus.taglibs; +import jakarta.servlet.jsp.JspWriter; +import jakarta.servlet.jsp.PageContext; import net.thauvin.erik.httpstatus.Utils; -import javax.servlet.jsp.JspWriter; -import javax.servlet.jsp.PageContext; import java.io.IOException; /** diff --git a/src/main/java/net/thauvin/erik/httpstatus/taglibs/CodeTag.java b/src/main/java/net/thauvin/erik/httpstatus/taglibs/CodeTag.java index 0e17111..5d5b47a 100644 --- a/src/main/java/net/thauvin/erik/httpstatus/taglibs/CodeTag.java +++ b/src/main/java/net/thauvin/erik/httpstatus/taglibs/CodeTag.java @@ -32,9 +32,10 @@ package net.thauvin.erik.httpstatus.taglibs; -import javax.servlet.jsp.JspWriter; -import javax.servlet.jsp.PageContext; -import javax.servlet.jsp.tagext.SimpleTagSupport; +import jakarta.servlet.jsp.JspWriter; +import jakarta.servlet.jsp.PageContext; +import jakarta.servlet.jsp.tagext.SimpleTagSupport; + import java.io.IOException; /** diff --git a/src/main/java/net/thauvin/erik/httpstatus/taglibs/MessageTag.java b/src/main/java/net/thauvin/erik/httpstatus/taglibs/MessageTag.java index 12d4e7b..7ec8862 100644 --- a/src/main/java/net/thauvin/erik/httpstatus/taglibs/MessageTag.java +++ b/src/main/java/net/thauvin/erik/httpstatus/taglibs/MessageTag.java @@ -32,10 +32,10 @@ package net.thauvin.erik.httpstatus.taglibs; +import jakarta.servlet.jsp.JspWriter; +import jakarta.servlet.jsp.PageContext; import net.thauvin.erik.httpstatus.Utils; -import javax.servlet.jsp.JspWriter; -import javax.servlet.jsp.PageContext; import java.io.IOException; /** @@ -55,7 +55,7 @@ public class MessageTag extends XmlSupport { @SuppressWarnings("PMD.CloseResource") final JspWriter out = pageContext.getOut(); final String message = (String) pageContext.getRequest().getAttribute( - javax.servlet.RequestDispatcher.ERROR_MESSAGE); + jakarta.servlet.RequestDispatcher.ERROR_MESSAGE); Utils.outWrite(out, message, defaultValue, escapeXml); } diff --git a/src/main/java/net/thauvin/erik/httpstatus/taglibs/ReasonTag.java b/src/main/java/net/thauvin/erik/httpstatus/taglibs/ReasonTag.java index 04fd948..10bbc2c 100644 --- a/src/main/java/net/thauvin/erik/httpstatus/taglibs/ReasonTag.java +++ b/src/main/java/net/thauvin/erik/httpstatus/taglibs/ReasonTag.java @@ -32,11 +32,11 @@ package net.thauvin.erik.httpstatus.taglibs; +import jakarta.servlet.jsp.JspWriter; +import jakarta.servlet.jsp.PageContext; import net.thauvin.erik.httpstatus.Reasons; import net.thauvin.erik.httpstatus.Utils; -import javax.servlet.jsp.JspWriter; -import javax.servlet.jsp.PageContext; import java.io.IOException; /** diff --git a/src/main/java/net/thauvin/erik/httpstatus/taglibs/XmlSupport.java b/src/main/java/net/thauvin/erik/httpstatus/taglibs/XmlSupport.java index ecf0ed6..672d4c4 100644 --- a/src/main/java/net/thauvin/erik/httpstatus/taglibs/XmlSupport.java +++ b/src/main/java/net/thauvin/erik/httpstatus/taglibs/XmlSupport.java @@ -32,7 +32,7 @@ package net.thauvin.erik.httpstatus.taglibs; -import javax.servlet.jsp.tagext.SimpleTagSupport; +import jakarta.servlet.jsp.tagext.SimpleTagSupport; /** * Adds support for the default and escapeXml tag attributes. diff --git a/version.properties b/version.properties index 4799ec4..98bcbf2 100644 --- a/version.properties +++ b/version.properties @@ -2,7 +2,7 @@ #Sun May 02 22:01:06 PDT 2021 version.buildmeta= version.major=1 -version.minor=0 -version.patch=6 +version.minor=1 +version.patch=0 version.prerelease=SNAPSHOT -version.semver=1.0.6-SNAPSHOT +version.semver=1.1.0-SNAPSHOT