In fact, there have been written custom tags, but did not notice the use of <rtexprvalue>, the last few days with a custom label, and suddenly found that the use of <rtexprvalue> is fastidious.
The full name of Rtexprvalue is Run-time Expression Value, which is used to indicate whether a JSP expression can be used.
When <rtexprvalue>true</rtexprvalue> is specified in the <attribute> label, the value of a property representing the custom label can be specified directly or specified by dynamic calculation.
Example as follow:
<sql:query var= "Result" >
SELECT * FROM MyTable ORDER by NameID
</sql:query>
<%request.setattribute ("NameID", "2"); %>
<mytag:cupsize cupsize= "1" cupsizes= "${result}" ></myTag:cupSize>
<mytag:cupsize cupsize= "${nameid}" cupsizes= "${result}" ></myTag:cupSize>
When <rtexprvalue>false</rtexprvalue> is specified in the <attribute> label, the value of a property representing the custom label can only be specified directly, example as follow:
<mytag:cupsize cupsize= "1" cupsizes= "${result}" ></myTag:cupSize>