File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Excel Window problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Excel Window problem " Watch "Excel Window problem " New topic
Author

Excel Window problem

himanshu patel
Ranch Hand

Joined: Feb 03, 2003
Posts: 205
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


If you want to become a rich, do not work for others but make others to work for you.
himanshu patel
Ranch Hand

Joined: Feb 03, 2003
Posts: 205
Sorry Everyone,
In Code,
document.markets.action = windowPath;
document.markets.submit();
Here, "markets" is FORM NAME.
Himanshu
 
 
subject: Excel Window problem
 
Threads others viewed
launching URL in new browser window
How to get rid of opening extra Excel window in JSP
session issues with Ctrl-N
Problem in opening multiple browser
Does Open option create a new Excel sheet
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture