tag问题:HTTP Status 500 - /······According to TLD, tag t:date must be empty, but is not.
原因:在tld文件中,自定义标签的body-content类型为empty,所以在使用标签时标签之间要能空,不能有标签体,包括空格,我之前就是在标签中间加了空格。
示例:(tld文件中自定义标签)
<!-- 定义标签1 -->
<tag>
<description>
时间标签
</description>
<name>date</name>
<tag-class>tag.TagDate</tag-class>
<body-content>empty</body-content>
</tag>
错误使用标签(中间有空格):
<t:date> </t:date>