Hello
I have a
servlet which will open up a
word document when given the URL for a
doc file located on the server. However I would like it so that if the document URL is invalid it would display an HTML error page, however it still opens up Word and displays the error info there. I have a solution to this however it would require me to create a seperate
JSP page to handle the errors. I am wondering can the servlet handle handle both Word docs and display error info on the browser.
I set the servlet content type to open up the responses in the MSWord app.
is there another way around this?? Do I have to redirect the response to a seperate JSP page to handle errors??
here is the line I mentioned: