You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2023/09/21 10:16:59 UTC
[tomcat] branch main updated: Throw include error when it occurs
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 <re...@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org