<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?

I do believe it is a valid syntax if the JSPs are not in XML "mode". JSP pages are not valid XML, unless explictly stated so.

/Janne

Reply via email to