• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Popup window from a servlet

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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=\"javascript:openManuWindow('/servlet/SupplierControl?formTrigger=2&manuCode=12345');\">Link text</a>
[ January 25, 2003: Message edited by: DC Dalton ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic