There is a
jsp page, which have few links to download a file. Now when user clicks on those links a
servlet is called say "downloadReport" servlet, which make a temporary file of that particular report, set the response type accordingly and write all the data to the stream. it is working fine to download the report and THAT JSP page remain visible. No change and no apparent submission of that page.
But the problem arises when there is some exception in the servlet. the jsp page disappear and there is servlet error msg. Now how can handle this?