TOMCAT 9 +Java 8 升级问题:未定义类型 RequestUtil 的方法 URLDecode(String)

TOMCAT 9 +Java 8 upgrade issue: The method URLDecode(String) is undefined for the type RequestUtil

最近我将我的应用程序升级到 Tomcat 9 和 Java 8 并部署了我的 war 文件。当我启动我的应用程序时,我收到类似

的错误
  An error occurred at line: [3] in the jsp file: [/app/myPage.jsp]
  The method URLDecode(String) is undefined for the type RequestUtil
   1: </script>
   2: <%
   3: String fromPage = org.apache.catalina.util.RequestUtil.URLDecode( "redirect" );

在我的lib路径catalina.jar中有方法。 请指导我缺少什么。

该功能已在版本 9 中删除: https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/catalina/util/RequestUtil.html

尝试 Tomcat 9 中的 UDecoder: https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/tomcat/util/buf/UDecoder.html

或Java 8的内置解码器: https://docs.oracle.com/javase/8/docs/api/java/net/URLDecoder.html