Bumped bld to 1.8.0
This commit is contained in:
parent
4011fe8024
commit
1d6a7824fe
7 changed files with 39 additions and 22 deletions
|
@ -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><hs:cause></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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue