Added <hs:cause/> and <hs:code/> tags and associated parameters.

This commit is contained in:
Erik C. Thauvin 2015-12-03 18:55:47 -08:00
parent 92a6bb21de
commit da35797ffb
9 changed files with 485 additions and 40 deletions

View file

@ -43,6 +43,40 @@
<short-name>hs</short-name>
<uri>http://erik.thauvin.net/taglibs/httpstatus</uri>
<tag>
<description>
Returns the cause (if any) for the current HTTP Status Error Code.
</description>
<name>cause</name>
<tag-class>net.thauvin.erik.httpstatus.taglibs.CauseTag</tag-class>
<body-content>empty</body-content>
<attribute>
<description>
Default value if the resulting cause is null.
</description>
<name>default</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Converts &lt;,&gt;,&amp;,'," to their corresponding entity codes. Value is true by default.
</description>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Outputs the HTTP Status Error Code.
</description>
<name>code</name>
<tag-class>net.thauvin.erik.httpstatus.taglibs.CodeTag</tag-class>
<body-content>empty</body-content>
</tag>
<tag>
<description>
Returns the Reason Phrase for the current (or specified) HTTP Status Error Code.
@ -62,7 +96,15 @@
<description>
HTTP Status Error Code to be looked up.
</description>
<name>statusCode</name>
<name>code</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Converts &lt;,&gt;,&amp;,'," to their corresponding entity codes. Value is true by default.
</description>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>