請(qǐng)看c.tld里關(guān)于out標(biāo)簽的定義:
<tag>
<description>
Like <%= ... >, but for expressions.
</description>
<name>out</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Expression to be evaluated.
</description>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Default value if the resulting value is null.
</description>
<name>default</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Determines whether characters <,>,&,'," in the
resulting string should be converted to their
corresponding character entity codes. Default value is
true.
</description>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
=============================================================================
自定義標(biāo)志的tld中的<attribute>結(jié)構(gòu)中的rtexprvalue 屬性是在運(yùn)行時(shí)刻動(dòng)態(tài)計(jì)算還是取編譯進(jìn)行時(shí)的靜態(tài)值,如果為true,它就取得靜態(tài)值,即:必須給它顯現(xiàn)賦值,如:
<tag>
<name>codePopupTree</name>
<tag-class>com.neusoft.talentbase.framework.code.taglib.CodePopupTreeTag</tag-class>
<body-content>empty</body-content>
<attribute>
<name>type</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
此時(shí)在使用這個(gè)標(biāo)簽時(shí)必須像下面這個(gè)寫(xiě):
<tb:codePopupTree type="CODE_AdministrationArea" />
rtexprvalue 屬性的全稱為
run time expression value
運(yùn)行時(shí)表達(dá)式
Dear my visitors. Could you share your own understanding of the express"<rtexprvalue>true</rtexprvalue>"with me?I possible, could you give me some example?
What is more, I can't really seize the sentence below:
自定義標(biāo)志的tld中的<attribute>結(jié)構(gòu)中的rtexprvalue 屬性是在運(yùn)行時(shí)刻動(dòng)態(tài)計(jì)算還是取編譯進(jìn)行時(shí)的靜態(tài)值,如果為true,它就取得靜態(tài)值,即:必須給它顯現(xiàn)賦值,如