Is there any good reason to use <rtexprvalue>false</rtexprvalue> in JSP tags?

Posted by Superfilin on Stack Overflow See other posts from Stack Overflow or by Superfilin
Published on 2010-03-29T09:08:21Z Indexed on 2010/03/29 9:13 UTC
Read the original article Hit count: 761

Filed under:
|
|

Is there any good reason to disallow scriptlet or EL expression to be inserted as attribute value?

Let's say we have tag:

<tag>
    <name>mytag</name>
    <tag-class>org.apache.beehive.netui.tags.tree.Tree</tag-class>
    <attribute>
        <name>attr</name>
        <required>false</required>
        <rtexprvalue>false</rtexprvalue>
        <type>boolean</type>
    </attribute>
</tag>

What could be a good reason for dissallowing the below?

<my:mytag attr="${setting}" />

© Stack Overflow or respective owner

Related posts about java

Related posts about jsp