aspose file tools*
The moose likes JSP and the fly likes Printing a set of JSPs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Printing a set of JSPs" Watch "Printing a set of JSPs" New topic
Author

Printing a set of JSPs

surya naidu
Ranch Hand

Joined: Jul 26, 2010
Posts: 32
I have an application where the user fills a registration form...It has some four steps and four different JSPs(once he fills first JSP then second JSP comes on clicking next.......and so on.......!!!)

I want the user to be able to print the JSPs (For say after filling three pages he wants to print what he has entered till that point )as they are visible to the UI...So that the user can know what he has entered

Any suggestions....???(I am already holding the data which he fills through session..and its also available in the DB as he moves from one page to another)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61661
    
  67

Printing screens formatted for the display usually looks pretty bad. So you probably don't really want to just print the data entry JSPs... rather, you can take the information that was entered and format it nicely using PDF, or using another JSP that uses CSS print media to format the data nicely for printing.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
surya naidu
Ranch Hand

Joined: Jul 26, 2010
Posts: 32
ok .....Thank you.....Just wanted to find if there is any other easier way.....!!!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61661
    
  67

Such as? Those previous JSPs are dead and gone, so you're going to need to do something to format the output no matter which way you choose to go -- why not make it something nice that you can be proud of?
 
 
subject: Printing a set of JSPs