Your question is a little bit vague. If your concern is how to display the same data in a format that is good for viewing versus a format that is good for printing you could set up separate results in your struts-config.xml (or struts.xml if you're in struts2) file for your action. Each result could take you to a
jsp (one for viewing one for printing) and you could decide which you wanted to go to in your action class. If this wasn't what you were looking for please post a more specific question.