Hi,
Finally one solution seems to work. Instead of reloading the url using window.location.reload(), I am submitting the form on load of the intermediate jsp, this brings the report in correct format.
In order to handle the back button issue because of a new request due to submit, I give the submit of form to the same url. So it will be considered as refresh by the browser. At the handler side, I handle he logic based on if req is coming for first or second time.
I have to do a lot of
testing to confirm this. This doesnt seems to be a good way of doing but dont have any other option.
Thank you very much for the help. The url reload idea lead to this solution. Will be letting you know the result soon.