Upgraded from 8.0 to 8.5. In the new version, every time we use one of our custom JSP tags, we get an “invalid attribute” warning on every attribute of the tag. (Yellow underline, “Invalid attribute ([attribute name here])” Type=JSP Problem.
The individual tags define the specific attributes, so it isn’t a question of really using an undefined attribute. For example, the following tag file:
<%@ attribute name="album" required="true" type="(our internal class name goes here)"
%><%@ taglib prefix="s" uri="/struts-tags"
%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ tag dynamic-attributes="dynAttr" body-content="empty"
%>(body of tag continues here)
will generate a warning every time it is referenced thus in a JSP file:
<tt:albumTitle album="${albumInfo}" />
The yellow underline is on the contents of the quotes
If I do this
<tt:albumTitle album="xyz" />
the warning goes away.
While I realize that the JSP validator may not be able to validate that the first example is of the correct type, it’s kind of odd that it then turns around and accepts the second example, where the value is, in fact, NOT of the correct type.