David Chang wrote: > I need to generate a few lines of info in a single > cell. Here is what I did: > > <display:column title="mutli-line address"> > <% > .... > out.write("<br/>") > .... > %> > </display:column> > > Now I want to output this listing in Excel and PDF > format. However, I got html line breaks (<br/>) in the > output of these formats. > > How can I remove them from PDF/Excel formats? > > You need to use the media attribute of the display:column tag:
<display:column title="mutli-line address" media="html"> <% .... out.write("<br/>") .... %> </display:column> <display:column title="mutli-line address" media="pdf excel"> <% .... .... %> </display:column> http://displaytag.sourceforge.net/11/displaytag/tagreference.html#column Ed! ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user