Added MessageTag. Closes #4
This commit is contained in:
parent
0dafe87021
commit
9ff860af40
5 changed files with 244 additions and 74 deletions
15
README.md
15
README.md
|
@ -53,6 +53,21 @@ The `<hs:code/>` tag displays the current HTTP status code, if any. A shorthand
|
|||
<%= pageContext.getErrorData().getStatusCode() %>
|
||||
```
|
||||
|
||||
## hs:message
|
||||
|
||||
The `<hs:message/>` tag displays the cause of current error message, if any. A shorthand for:
|
||||
|
||||
```jsp
|
||||
<%= request.getAttribute("javax.servlet.error.message") %>
|
||||
```
|
||||
|
||||
Optional attributes are:
|
||||
|
||||
Attribute | Description
|
||||
----------- | -------------------------------------------------------------------------------------------
|
||||
`default` | The fallback value to output, if no error message is available.
|
||||
`escapeXml` | Converts <, >, &, ', " to their corresponding [entity codes](http://dev.w3.org/html5/html-author/charref). Value is `true` by default.
|
||||
|
||||
## hs:reason
|
||||
|
||||
The `<hs:reason/>` tag displays the reason for a HTTP status code, if any. Optional attributes are:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue