What are and used for?

前端 未结 2 676
-上瘾入骨i
-上瘾入骨i 2021-01-31 02:14

I was working on custom tag libraries and I was confused how the and tags are used in the TLD file to define a cus

2条回答
  •  不知归路
    2021-01-31 03:12

    required quite simply implies what it says. The attribute is required or mandatory.

    rtexprvalue means Runtime Expression Value. It means the attribute can support scriptlet values.

    elexprvalue means it can support EL (expression language) values.

    So, if you have requiredattr defined as both required=true and rtexprvalue=true and elattribute is defined as elexprvalue=true, you can write as follows:

    
    

提交回复
热议问题