Are you setting your content type properly? [application/pdf] ----- Original Message ----- From: "Struts Newsgroup" <@[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 19, 2002 8:55 AM Subject: Strange PDF download behavior
> Subject: Strange PDF download behavior > From: "John Bauer" <[EMAIL PROTECTED]> > === > We are having a difficult time getting a PDF download to work with Struts. > This works fine with a servlet we have in production today, but when using > Struts, it fails every time. > > We are submitting a form that contains a date and a type, and then going to > a back-end vendor to retrieve the PDF stream and re-stream it back to the > user. The URL that should work is as follows: > > http://xxxx/action/viewStmt?period=mm/dd/yy&type=PDF > > When we execute this URL, the action is invoked, the correct arguments are > obtained, the vendor is called, and the streaming is done. However, the > browser then pops up a message saying... > > "You have chosen to download a file from this location: > > yy&type=PDF from xxxx" > > and the download fails. > > We are doing almost the exact same thing with a servlet, and no such error > happens. Any ideas? > > Thanks, > John > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>