Re: Output PDF

2005-03-14 Thread Andre Van Klaveren
I'm assuming that your browser client is IE. If so, the reason your Action is being called twice is because of a feature in IE 4.x+. If your application returns data that is to be handled with an ActiveX control (ie Adobe Acrobat Reader) the browser sends additional requests to the server. In

Re: Output PDF

2005-03-14 Thread Larry Meadors
Why are you doing that in a jsp? You can do it in an action, but it will not work that well (but it will work better tahn in a jsp, i promise). The other issue is that a URL ending in /foo.do?name=value will not be seen by IE as a pdf. You should probably use a servlet for this instead, then you

RE: Output PDF

2005-03-14 Thread Brad Balmer
Thanks for the great response. This should take care of all my issues. -Original Message- From: Andre Van Klaveren [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 2:39 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Output PDF I'm assuming that your browser

Re: Output PDF

2005-03-14 Thread Andre Van Klaveren
Woh! IE *does not* use the URL to determine content type. It's determined by the MIME type sent back with the response from the server. And, by default, the option to have IE save encrypted data to disk is turned on, so there won't be an issue with PDFs and SSL unless Micro$oft has changed this

Re: Output PDF

2005-03-14 Thread Andre Van Klaveren
14, 2005 2:39 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Output PDF I'm assuming that your browser client is IE. If so, the reason your Action is being called twice is because of a feature in IE 4.x+. If your application returns data that is to be handled

RE: Output PDF

2005-03-14 Thread Scott Piker
] Sent: Monday, March 14, 2005 3:39 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Output PDF I'm assuming that your browser client is IE. If so, the reason your Action is being called twice is because of a feature in IE 4.x+. If your application returns data that is to be handled

Re: Output PDF

2005-03-14 Thread Andre Van Klaveren
in IE6? Is it safe to just look for the existence of the ACCEPT-LANGUAGE header? Thanks, - Scott -Original Message- From: Andre Van Klaveren [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 3:39 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Output PDF