Reto Badertscher wrote:
>
> When generating and sending a rtf file from a servlet, the browser ask for
> - display from current location
> - saving the document
>
> When "display from current location" is chosen by the user, the servlet
> receives a second request (that means the file will be generated a second
> time), when "saving the document" no additional request is sent to the
> servlet.
> The following parameters are set for sending the rtf document:
> aRes.setContentType("application/rtf");
> aRes.setHeader("Content-disposition","attachement;filename =
> myDocument.doc");
>
This is just a guess, but -
Do you think the second request might be checking to see
if the date last modified has changed? Suppose you create
a getLastModified method?
--
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2