Erik's Weblog 2.0

December 16, 2015

[@383]

HttpStatus JSP Tag Library

I've just released my HttpStatus JSP Tag Library, a simple JSP Tag Library to display the code, reason and/or cause for HTTP status codes in JSP error pages.

<%@ 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>

As usual the source code, documentation and binary are on GitHub.

[@708]

Twits du Jour (December 15)