• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Client status update after PDF generation through servlet.

 
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Attention cross post! Same is in JSP.
 
L Goundalkar
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is ridiculous.
I needed to get answer for this an dI have posted it in related technologies. I havent posted it in Swings or JDBC.
If you know the answer please let me know.
Thanks
 
High Plains Drifter
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
L Goundalkar -
Site policy asks that you post your question in one forum. One can make the argument that the question ought to be eligible for posting in all arguably relevant forums. Our concern is simply trying to keep each discussion focussed as much as possible.
Please bear in mind the the Saloon is not a paid service. People answer the questions posted in these forums because they would like to. No is credited in any tangible way for answering quickly, although we are concerned that only accurate answers, if any, remain posted.
The posting will remain open in the JSP forum. I'm closing this one and advising all readers to go to JSP if they would like to participate. Feel free to contact me offline or through the JavaRanch forum if you wish to discuss this further.
Regards,
Michael
 
Did Steve tell you that? Fuh - Steve. Just look at this tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!