Once I upload the CSV file and click on ok, the appropriate action class method is invoked and my url changes to -https://tenant1:8443/ima/importEmployee.do?method=save.
This page basically contains the import statistics, error messages for unprocessed records and such things.
This page also has an ok and a cancel button.
The corresponding JSP parts are as follows.
So, if I click on cancel in the second URLpage (https://tenant1:8443/ima/importEmployee.do?method=save), I go back to the first URLpage, i.e to
But this part behaves differently in Firefox and in Chrome browsers.
In Chrome, if I click on cancel in the second page, I can still see the uploaded file name( the hidden property in the first JSP is the file name ) in the first page. And if I click on ok, I can do the processing again as was done by clicking ok the first time on the first page.
However when I run my application in a Firefox browser, if I click on cancel in the second page, the uploaded file name says 'no file selected' in the first page. Hence to import Employees again, I need to upload a new/same CSV file again.
I don't want the file to be present in the first page when I click on cancel in the second page even when I run my application in Chrome. Yes, I require the file name to be a hidden property. This is because depending on the data in the file, different kind of processings are done and some of them require to take additional inputs from user on another page and a third page does the processing. So the file name should be passed on to the form but I don't want the user to upload the file again.
However in the event the user clicks on cancel, I don't want the file name to be retained in the first page. But this isn't happening.
So I have two questions. Why is the behaviour different in Chrome and in Firefox and is there a way I can correct the way it behaves in chrome?
Thanks for your help.
posted 6 years ago
I have posted this question in StackOverflow and the link for that is--