benn wrote: > Hello, > > I am sucessfully using a display table in a jsp file as follows: > [snip] > However I have pulled this into a separate tag file as this table > appears in lots of places throughout my app. > > <%@ include file="../jsp/common/include.jsp"%> > > <%@ attribute name="itemlist" required="true" type="java.util.List"%> > <%@ attribute name="title" required="true" type="java.lang.String"%> > > ${itemlist} > <h3>${title}</h3> > <display:table name="itemlist" export="true" requestURI="" > decorator="de.mpicbg.db.endotrack.displaydecorators.WorkItemDecorator"> > [snip] > However this doesn't show anything in my generated file for the > table, it simply shows the data for an empty list - it is like > displaytag is failing to read the variable from the attribute. Has > anyone successfully used displaytag in a tag file? >
I think your problem may be one of scope. DisplayTag only looks in the requestScope by default unlike the EL ${ } construct which will search all scopes. Does a tag attribute get placed in pageScope? Why not try name="pageScope.itemlist" and see if that helps? <http://displaytag.sourceforge.net/11/tut_sources.html> Ed! ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user