aspose file tools*
The moose likes JSP and the fly likes Client status update after PDF generation through servlet. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Client status update after PDF generation through servlet." Watch "Client status update after PDF generation through servlet." New topic
Author

Client status update after PDF generation through servlet.

L Goundalkar
Ranch Hand

Joined: Jul 05, 2001
Posts: 395
Hi All,

I am using Crystal Reports to create PDF format of report.
From my JSP page, which has options to set the query string for the report to be generated, I am submitting the details to a servlet.
The servlet creates the report in PDF format using dll given for Crystal report through JNI.
Once this is done, it sends the result back, by setting the content type as "application/pdf".
Now the PDF file is opened in new window or in the exiting window which requested the servelt depending on client setting.
My requirements are:

1. Before sending the request to the report servlet, I need to display message like "Report is getting generated...".

2. Once the report servlet sends the PDF content back to the client, I need to update this message like " successfully generated the report" or so.

Since the content is PDF, how can I update the status on client side? Also depending on the client setting the PDF opens in new window.

Please let me know how to implement this.

Thanks for the time.


SCJP, SCWCD
 
jQuery in Action, 2nd edition
 
subject: Client status update after PDF generation through servlet.