Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Excel Window problem

 
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry Everyone,
In Code,
document.markets.action = windowPath;
document.markets.submit();
Here, "markets" is FORM NAME.
Himanshu
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic