Added <hs:message/> to example.
This commit is contained in:
parent
ab231453a8
commit
74dddbba69
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
[](https://travis-ci.com/ethauvin/HttpStatus) [](https://ci.appveyor.com/project/ethauvin/httpstatus) [](https://circleci.com/gh/ethauvin/HttpStatus/tree/master)
|
[](https://travis-ci.com/ethauvin/HttpStatus) [](https://ci.appveyor.com/project/ethauvin/httpstatus) [](https://circleci.com/gh/ethauvin/HttpStatus/tree/master)
|
||||||
|
|
||||||
|
|
||||||
A simple [JSP](http://www.oracle.com/technetwork/java/javaee/jsp/index.html) Tag Library to display the [code](#hscode), [reason](#hsreason) and/or [cause](#hscode) for [HTTP status codes](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html) in JSP error pages.
|
A simple [JSP](http://www.oracle.com/technetwork/java/javaee/jsp/index.html) Tag Library to display the [code](#hscode), [reason](#hsreason), [cause](#hscode) and/or [message](#hsmessage) for [HTTP status codes](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html) in JSP error pages.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ For example:
|
||||||
</head>
|
</head>
|
||||||
<h1><hs:reason default="Server Error"/></h1>
|
<h1><hs:reason default="Server Error"/></h1>
|
||||||
Cause: <pre><hs:cause default="Unable to complete your request."/></pre>
|
Cause: <pre><hs:cause default="Unable to complete your request."/></pre>
|
||||||
|
Message: <pre><hs:message default="A server error has occured."/></pre>
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue