On Windows 2000, Tomcat 5.0.27 and after successfully obtaining an LDAP result a 2nd call to getAttribute will produce the same text returned in the first call, if the first call attribute 'cn' contains data and the second call attribute 'secretary' is a missing attributr from the result. <BR> <jndi:getAttribute ref='result' attribute='cn' id='cnval' multivalue='iterate'> <%=cnval%><BR> </jndi:getAttribute> <BR> <jndi:getAttribute ref='result' attribute='secretary' id='asecval' multivalue='iterate'> <A HREF=MVC?PAGE=DISPLAY&dn=<%=asecval%>>Admin Link</A><BR> </jndi:getAttribute> fix by adding clearBody to doEndTag; bodyContent.writeOut(pageContext.getOut()); added to fix-> bodyContent.clearBody();
Resolving as the JNDI taglib has been retired.