we had a similar problem, does this fail with an exception ?? or does
everything appear to be fine.

Try pressing refresh on the browser, our problem was the the user had to
press refresh to see the pdf document.

Ian


"John Bauer" wrote in message
news:3c978ffb@newsgroups.bea.com...
> We are having a difficult time getting a PDF download to work with the
> Struts framework on WLS 5.1.
> 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. I don't know if this is Struts-related or some configuration
> issue.
>
> Any ideas?
>
> Thanks,
> John
>
>
>
>