請看c.tld里關于out標簽的定義:
<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>
=============================================================================
自定義標志的tld中的<attribute>結構中的rtexprvalue 屬性是在運行時刻動態計算還是取編譯進行時的靜態值,如果為true,它就取得靜態值,即:必須給它顯現賦值,如:
<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>
此時在使用這個標簽時必須像下面這個寫:
<tb:codePopupTree type="CODE_AdministrationArea" />
rtexprvalue 屬性的全稱為
run time expression value
運行時表達式
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:
自定義標志的tld中的<attribute>結構中的rtexprvalue 屬性是在運行時刻動態計算還是取編譯進行時的靜態值,如果為true,它就取得靜態值,即:必須給它顯現賦值,如