Re: File download using a servlet and error handling

2014-09-26 Thread Léa Massiot
Ok guys, thank you all: I understand better. I'll see what I can do. Best regards. -- View this message in context: http://tomcat.10.x6.nabble.com/File-download-using-a-servlet-and-error-handling-tp5023017p5023118.html Sent from the Tomcat - User mailing list archive at Nabbl

Re: File download using a servlet and error handling

2014-09-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hassan, On 9/25/14 11:28 AM, Hassan Schroeder wrote: > On Thu, Sep 25, 2014 at 7:18 AM, Léa Massiot > wrote: > >> I was thinking maybe about an "error-page"... (never done that >> before): in case an exception is thrown after the response "has >>

Re: File download using a servlet and error handling

2014-09-25 Thread André Warnier
Hassan Schroeder wrote: On Thu, Sep 25, 2014 at 7:18 AM, Léa Massiot wrote: I was thinking maybe about an "error-page"... (never done that before): in case an exception is thrown after the response "has been committed", maybe this error page could be sent to the user... Since the user's brow

Re: File download using a servlet and error handling

2014-09-25 Thread Hassan Schroeder
On Thu, Sep 25, 2014 at 7:18 AM, Léa Massiot wrote: > I was thinking maybe about an "error-page"... (never done that before): in > case an exception is thrown after the response "has been committed", maybe > this error page could be sent to the user... Since the user's browser will still be disp

Re: File download using a servlet and error handling

2014-09-25 Thread Léa Massiot
really. Could it be a solution? Best regards. -- View this message in context: http://tomcat.10.x6.nabble.com/File-download-using-a-servlet-and-error-handling-tp5023017p5023041.html Sent from the Tomcat - User mailing list archive at Nabble.com. --

Re: File download using a servlet and error handling

2014-09-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Léa, On 9/25/14 5:48 AM, Léa Massiot wrote: > My question is about downloading a file using a servlet and > handling possible errors that may take place during the download > process. > > 1) I have a JSP page "download-file.jsp" with a "Download fi

File download using a servlet and error handling

2014-09-25 Thread Léa Massiot
don't see how I can both download the file and redirect the user towards the "download-file.jsp" page with an appropriate message. Do you have an idea how I should proceed? All the best and sorry for the language approximations like "consumed", etc. -- View this message