• 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
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Excel Window problem

 
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everybody,
I need your valuable suggestions for my problem.
I have one JSP application, which opens MS Excel file in browser window and writes into it. The JSP file, which does this, is being called from other JSP file (Will call this as First JSP file). In first JSP, I am doing following,
I am using POST method here. All parameters are being passed as hidden.
I am submitting the page in first JSP file as follows through javascript on clicking button.
//code here ……
windowPath =' ….‘; //Path of second JSP file goes here
document.markets.action = windowPath;
document.markets.submit();
window.close();
//Code Here ….
Executing this code, second JSP is called which opens MS Excel file in other browser window and writes into it. The first JSP is closed now. The problem here is that two Excel window is being
Opened instead of one. One with data has written in it and other blank Excel window.
Previously I was using GET method. It works fine with GET. But due to limitation of Query String I am forced to used POST method. With POST method, it opens one blank Excel window extra.
Can anyone help me to get rid of other Excel window being opened?
Thanks in advance and sorry for long explanation.
Himanshu
 
himanshu patel
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Everyone,
In Code,
document.markets.action = windowPath;
document.markets.submit();
Here, "markets" is FORM NAME.
Himanshu
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!