Use the uid attribute instead. So: > <display:table name="test" uid="testID">
This is an issue in some contexts. I specifically ran into it porting from JDK 1.3/WebLogic 6.1 to JDK 1.5/WebLogic 9.1; I'm not sure what part of the upgrade--JSP/servlet spec, WL itself, something else?--caused the problem. But the uid attribute is provided, I think, specifically to deal with this issue. Give it a try and your problem should disappear. Rick Herrick [EMAIL PROTECTED] > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:displaytag-user- > [EMAIL PROTECTED] On Behalf Of Dmitry Grigoriev > Sent: Saturday, May 06, 2006 10:17 AM > To: [email protected] > Subject: [displaytag-user] Please help: id parameter not working > > Hi everyone, > > I'm very interested in implementing the displayTag - the component > looks very promising. Unfortunately, I've hit a snag -trying to make > it work with Weblogic 8.1 SP5 and after a couple of days trying to > resolve it, I'm really hoping you guys could help. > > According to the info I found online, the "id" parameter in the > display:table tag is supposed to make the object corresponding to the > given row available in the page context. However, this feature does > not seem to work for me. The code below demonstrates it. > > <% > String[] testArray = {"test1","test2","testIdo"}; > request.setAttribute( "test", testArray); > %> > > <P>DisplayTag test11: > > <display:table name="test" id="testID"> > <display:column title="The Title 1"> > <% System.out.println("testID in the Request Scope =" + > pageContext.getAttribute ("testID",PageContext.REQUEST_SCOPE));%> > </display:column> > </display:table> > > This code prints: > testID in the Request Scope =null > testID in the Request Scope =null > testID in the Request Scope =null > It looks like it's iterating over the array just fine, but the page > context is not getting set. If you guys can help, I'd really > appreciate it! > > Thanks, > Dmitry > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642 > _______________________________________________ > displaytag-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/displaytag-user ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ displaytag-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/displaytag-user

