Hi,
I’ve posted a bug report in the DisplayTag issue tracker on this.
http://sourceforge.net/tracker/index.php?func=detail&aid=994355&group_id=73068&atid=536613
The issue is that mediaType is defined as a variable in the tag library. When <display:table> is nested, some JSPcc implementations appear to use the same scope, others not. Hence MyEclipse reports this as an error, but the page works fine in Tomcat 5. (I assume MyEclipse uses a different JSP compiler than Tomcat?)
Commenting out this line in the tag library and recompiling removed the error. (possibly removing tag functionality, I’m not sure).
TableTagExtraInfo.java
(note that PAGE_ATTRIBUTE_MEDIA = “mediaType”)
// media type row number
variables.add(new VariableInfo(
TableTag.PAGE_ATTRIBUTE_MEDIA,
“org.displaytag.properties.MediaTypeEnum”,
true,
VariableInfo.NESTED));
It’s not clear to me whether this is a JSP problem or a tag problem. (e.g. should JSP compilations allow nested tags with the same local variable?).
Requested info:
Eclipse 3.0.0
MyEclipse 3.7.2700
Installed from an installer, loaded a week or two ago
JDK 1.4.2_04 (eclipse & Tomcat)
Tomcat 5.0.27
Other plugins:
subclipse
maven