Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Popup window from a servlet  RSS feed

 
Vish Vempati
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks in advance for the responses. Let me explain you in detail. I have a JSP called Reports.jsp which is initiated by a ReportServlet. In the JSP user will select some options and clicks on the Print or Preview report. The response should go to the servlet and the Servlets has to refresh the same page but at the same time it has to initiate the Crystal report interface and the response from the Crystal server has to be displayed in another Window( something like Popup window). Basically that window should show the status of the report such as whether the report has been successfully generated(if so, hyper link should be there in the window/html) or not or Crystal server failed etc. All this has to be displayed in antoher window. If user clicks selects another report information and wnats to generate if the (popup) window is still open, the servlet should not open another popup window instead it shoud finish the report task and the old popup( resizble) window should be updated with the new report information. I hope I do make myself clear.
Please help me.
Thanks,
VV
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you want all these things to happen on the user's browser you are going to have to write Javascript into an HTML page. Probably the best way to start is by coding a mockup of what you want in static HTML pages - once you get the Javascript working right you can work on getting the JSP and servlets integrated into the system.
Bill
 
DC Dalton
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code is actually simple. make a javascript function to open a new window & then code the link as such:
<a href=\"javascriptpenManuWindow('/servlet/SupplierControl?formTrigger=2&manuCode=12345');\">Link text</a>
[ January 25, 2003: Message edited by: DC Dalton ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!