1. getNameFromAttribute() returns the attribute name, not the variable name and
2. This is a translation time test so the attribute value is not known
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920907
13f79535-47bb-0310-9956-
ffa450edef68
for (int i = 0; i < tagInfos.length; i++) {
TagVariableInfo tagInfo = tagInfos[i];
if (tagInfo != null) {
- String name = tagInfo.getNameFromAttribute();
- if (name == null) {
- name = tagInfo.getNameGiven();
+ String name = tagInfo.getNameGiven();
+ if (name != null) {
+ pageInfo.getVarInfoNames().add(name);
}
- pageInfo.getVarInfoNames().add(name);
}
}
}