Bumped bld to 1.8.0

This commit is contained in:
Erik C. Thauvin 2024-01-31 15:42:25 -08:00
parent 4011fe8024
commit 1d6a7824fe
7 changed files with 39 additions and 22 deletions

View file

@ -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.Utils;
import java.io.IOException;
import net.thauvin.erik.httpstatus.Utils;
import jakarta.servlet.jsp.JspWriter;
/**
* The <code>&lt;hs:cause&gt;</code> tag returns the cause (if any) for the current HTTP Status Error Code.
@ -54,6 +54,8 @@ public class CauseTag extends XmlSupport {
final PageContext pageContext = (PageContext) getJspContext();
final JspWriter out = pageContext.getOut();
final Throwable cause = pageContext.getErrorData().getThrowable().getCause();
Utils.outWrite(out, getCause(cause), defaultValue, escapeXml);
@ -72,4 +74,4 @@ public class CauseTag extends XmlSupport {
return null;
}
}
}
}