Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 17124 invoked from network); 2 Jun 2008 17:29:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jun 2008 17:29:18 -0000 Received: (qmail 14360 invoked by uid 500); 2 Jun 2008 17:29:09 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 14331 invoked by uid 500); 2 Jun 2008 17:29:09 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 14315 invoked by uid 99); 2 Jun 2008 17:29:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 10:29:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [213.61.246.114] (HELO srv-im-01.intern.infomotion.de) (213.61.246.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 17:28:21 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Problem generating a csv file for download Date: Mon, 2 Jun 2008 19:28:23 +0200 Message-ID: <302C50230E32AF488BFAFA755ECDAB8E55FAA1@srv-im-01.intern.infomotion.de> In-Reply-To: <8235f6480806021001v1bb5da83p7fd0a7c68f226ee7@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem generating a csv file for download Thread-Index: AcjE0nb8gmgA1uxMRVGCetbGHPwqwwAAJKaQ References: <8235f6480806021001v1bb5da83p7fd0a7c68f226ee7@mail.gmail.com> From: "Jan Froehlich" To: "Struts Users Mailing List" X-Virus-Checked: Checked by ClamAV on apache.org Hi List, I'm developing an webapp generating csv files based on some hibernate queries - so far so good. Action "csvSelect" is used to display a form with a select box and a datetimepicker and to pass 2 parameters to the second action "csvGenerate" which is the one that generates the csv file. csvGenerate tiles.page.select To this point everything is working like a charm.=20 But when I set=20 response.setHeader("Content-Disposition", "attachment; filename=3Dmyfile.csv"); response.setContentType("text/x-download"); The action is called once and building my csv content - after I return SUCCESS it displays the Internet Explorer "Open / Save" dialog and when I click on "open" or "save" the action is called another time - but now I dont have access to the parameters passed from the first action. As I am new to struts2 and I am no native speaker I hope that someone understands what my problem is and gives me a clue! Thanks in advance! Jan Froehlich --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org