本想让自己的标记支持动态的参数,如:
<ohg:HelpGuide titleName="<%=titleName%>" functionId="1" />
动态参数:
<%=titleName%>,
此时会报错:
According to TLD or attribute directive in tag file, attribute value does not accept any expressions
是需要在标记库的tld文件中增加以下属性:
<attribute>
<name>titleName</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
记录在此,便以后查阅,也希望能够帮助大家,愿大家少走些弯路!