diff --git a/README.html b/README.html index e8d42c7..7f3446d 100644 --- a/README.html +++ b/README.html @@ -6,76 +6,54 @@
A simple JSP Tag Library to display the code, reason and/or cause for HTTP status codes in JSP error pages.
For example:
-<%@ page isErrorPage="true" %>
+<%@ page isErrorPage="true" %>
<%@ taglib prefix="hs" uri="http://erik.thauvin.net/taglibs/httpstatus" %>
<html><head>
<title><hs:code/> <hs:reason default="Server Error"/></title>
</head>
<h1><hs:reason default="Server Error"/></h1>
Cause: <pre><hs:cause default="Unable to complete your request."/></pre>
-...
or
-<%@ page isErrorPage="true" import="net.thauvin.erik.httpstatus.Reasons" %>
-<%= Reasons.getReasonPhrase(pageContext.getErrorData().getStatusCode()) %>
<%@ page isErrorPage="true" import="net.thauvin.erik.httpstatus.Reasons" %>
+<%= Reasons.getReasonPhrase(pageContext.getErrorData().getStatusCode()) %>
would display on a 501 status code:
Not Implemented
The <hs:cause/>
tag displays the cause of current HTTP status code, if any. A shorthand for:
<%= pageContext.getErrorData().getThrowable().getCause().getLocalizedMessage() %>
<%= pageContext.getErrorData().getThrowable().getCause().getLocalizedMessage() %>
Optional attributes are:
-Attribute | @@ -95,14 +73,10 @@ Cause: <pre><hs:cause default<
---|
The <hs:code/>
tag displays the current HTTP status code, if any. A shorthand for:
<%= pageContext.getErrorData().getStatusCode() %>
<%= pageContext.getErrorData().getStatusCode() %>
The <hs:reason/>
tag displays the reason for a HTTP status code, if any. Optional attributes are:
Attribute | @@ -454,10 +428,10 @@ Cause: <pre><hs:cause default< compile 'net.thauvin.erik.httpstatus:httpstatus:1.0.3' }
---|