• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display tag..Printing all rows of a table

 
Sue Pillai
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my struts-based application, I am using the display:table tag to display search results in a table. I display 10 records at a time. There is a print option for this page.

While I could use:
<a href=javascript:window.print()>Print</a>
to print one page at a time, what do I do to print the entire search results fetched and not just the current page? Do I need Javascript?

I am unsure of whether this is a Javascript question or a JSP one because I am using the display tags. Sorry, if I have posted in the wrong forum.

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any printing done at the client will only have access to the page that is being displayed. Perhaps you should consider alalowing your users to request reports in PDF?
 
Sue Pillai
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.

I am allowing my users to export the search results to an excel file and they could print from there. I also have an "all" option that displays all the search results that they could print with the <a href> option I mentioned before. But they insist that they need a "print" button that would print everything (even though they are not displayed) I am not much of a front-end person and I was wondering if there was a work-around.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic