本想讓自己的標(biāo)記支持動態(tài)的參數(shù),如:
<ohg:HelpGuide titleName="<%=titleName%>" functionId="1" />
動態(tài)參數(shù):
<%=titleName%>,
此時會報(bào)錯:
According to TLD or attribute directive in tag file, attribute value does not accept any expressions
是需要在標(biāo)記庫的tld文件中增加以下屬性:
<attribute>
<name>titleName</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
記錄在此,便以后查閱,也希望能夠幫助大家,愿大家少走些彎路!
<ohg:HelpGuide titleName="<%=titleName%>" functionId="1" />
動態(tài)參數(shù):
<%=titleName%>,
此時會報(bào)錯:
According to TLD or attribute directive in tag file, attribute value does not accept any expressions
是需要在標(biāo)記庫的tld文件中增加以下屬性:
<attribute>
<name>titleName</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
記錄在此,便以后查閱,也希望能夠幫助大家,愿大家少走些彎路!