Re: Output PDF

2005-03-14 Thread Andre Van Klaveren
m: 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 > > I'm assuming that your browser client is IE. If so, the reason your > Action is being called twice is because

RE: Output PDF

2005-03-14 Thread Scott Piker
sage- 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 I'm assuming that your browser client is IE. If so, the reason your Action is being called twice is because of a "feature&q

Re: Output PDF

2005-03-14 Thread Andre Van Klaveren
ED] > 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 client is IE. If so, the reason your > Action is being called twice is because of a "feature" in IE 4.x+. If &g

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 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 br

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 c

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

Output PDF

2005-03-14 Thread Brad Balmer
I'm using Jasper to create PDF's through my Actions and cannot figure out a good way to export the resulting byte[] to the user. Currently the tail end of my Action class looks like this: byte[] reportBytes = null; File jasperReport = new File(location); try { reportBytes = JasperRunMana