This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new b41da76d87 Throw include error when it occurs
b41da76d87 is described below
commit b41da76d877120cda46620e34a2c4cd6eec60819
Author: remm <[email protected]>
AuthorDate: Thu Sep 21 12:14:31 2023 +0200
Throw include error when it occurs
---
java/org/apache/jasper/runtime/JspRuntimeLibrary.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/java/org/apache/jasper/runtime/JspRuntimeLibrary.java
b/java/org/apache/jasper/runtime/JspRuntimeLibrary.java
index 160400b67e..29747ff4a9 100644
--- a/java/org/apache/jasper/runtime/JspRuntimeLibrary.java
+++ b/java/org/apache/jasper/runtime/JspRuntimeLibrary.java
@@ -905,6 +905,9 @@ public class JspRuntimeLibrary {
if (rd != null) {
rd.include(request,
new ServletResponseWrapperInclude(response, out));
+ } else {
+ throw new JasperException(
+ Localizer.getMessage("jsp.error.include.exception",
resourcePath));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]