This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new bf2158f849 Throw include error when it occurs
bf2158f849 is described below

commit bf2158f84919862ec0fe44420d79db354653c8d3
Author: remm <r...@apache.org>
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 a503b1dac0..d705e6cc93 100644
--- a/java/org/apache/jasper/runtime/JspRuntimeLibrary.java
+++ b/java/org/apache/jasper/runtime/JspRuntimeLibrary.java
@@ -993,6 +993,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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to