Question:
What are the rules for JSP tag usage inside of another tag?
Clearly, this (non-embedded) version is legal:
<foo value="bar"&rt;
...and so is this version, where the attribute value is determined by
evaluating a nested JSP tag:
<foo value="<c:out value='${i.version}'/>">
...but what about generating the attribute NAME based on a nested JSP
tag? Example:
<foo <c:if test="${i.version ==
olddiff}">selected="selected"</c:if> ><c:out value="$
{i.version}"/></option>
... where here, a c:if element determines whether the "selected"
attribute appears.
We have something like this in DiffTab.jsp, and it seems like it
shouldn't work. But it does. Why? Is this valid syntax or is it just
that the JSP compiler is more lenient?
Andrew