I have a tag with 2 attributes: bean (could be any object) and property (a
string). This tag should produce a span with
id of the span = the given propertycontent of the span = the value of the property of the given bean
Example of the desired behavior:
<tags:myTag bean="${aList}" property="empty" /> should result in
<span id="empty">true</span> (if
aList is an empty list)
The 1st part isn't hard:
<span id="${property}"></span>
But how can I do the 2nd part (if it's possible)?