Chris Pratt wrote: > I am trying to use the href attribute on the display:column tag, but > it doesn't appear to allow dynamic data. Well sort of... > > When I use something like: > > <display:column > href="javascript:memberPortal('${member.id}','${member.name.lastname}')" > scope="row"><img > src="${pageContext.request.contextPath}/img/member_portal.gif" > /></display:column> > > It ends up writing out: > > <a href="javascript:memberPortal('464631314','ADDRESS')"><img > src="/client/img/member_portal.gif" /></a> > <a href="javascript:memberPortal('464631314','ADDRESS')"><img > src="/client/img/member_portal.gif" /></a> > <a href="javascript:memberPortal('464631314','ADDRESS')"><img > src="/client/img/member_portal.gif" /></a> > > In other words it always uses the same parameters, but it should be > getting a new string from the JSP engine on each iteration. > > Is there an efficient way of accomplishing this without writing a > bunch of table specific Java code? > (*Chris*)
I've never used the href tag. What I would do is put the <a> tag inside the <table:column> tag like this: <display:column> <a href=" javascript:memberPortal('${member.id}','${member.name.lastname}')"><img src="${pageContext.request.contextPath}/img/member_portal.gif" /></a> </display:column> which should achieve what you're looking for. Ed! ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user