Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 49976 invoked from network); 13 Oct 2010 03:58:30 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Oct 2010 03:58:30 -0000 Received: (qmail 23659 invoked by uid 500); 13 Oct 2010 03:58:28 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 23501 invoked by uid 500); 13 Oct 2010 03:58:25 -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 23493 invoked by uid 99); 13 Oct 2010 03:58:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 03:58:25 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of davelnewton@gmail.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-ew0-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 03:58:20 +0000 Received: by ewy28 with SMTP id 28so1645185ewy.35 for ; Tue, 12 Oct 2010 20:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=9jTWDfg7DWJ+B8RdmlBfBpROUa+WpRKazSK3TLkYbQQ=; b=CEJNx3+nMTWe1kFm4YX/2GdoLgJJ/3gP4G5e1ZgK0mw8iPofdkrpdJBmCgV36Gwgpx JjIQ5pFQqvT0iAZnJZefGcbT1SLzFnF11MRXdSoUO7DgdUmHByDgQslXhW1RMO0LeI9R F6tMy+q+Ffr+AcS9ea6TSW+/NENizsxN6lkQE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ZC2qvM5u97P/uvF5fPHc9m595Qaa35RDcttj/LgfS/ocTYx3KtdPHyCMarIzhI0ScA ezB54AZbqqIo64mLGVXlXp1VAPsxQijBPV4LkimnOXsXih+f2vAmeLeGhmd3/UkRHojW 8ei4BCBNocTL86dc3r6CcTZxaoi37/ekqUFMk= MIME-Version: 1.0 Received: by 10.213.35.6 with SMTP id n6mr86583ebd.0.1286942278898; Tue, 12 Oct 2010 20:57:58 -0700 (PDT) Received: by 10.213.14.148 with HTTP; Tue, 12 Oct 2010 20:57:58 -0700 (PDT) In-Reply-To: References: Date: Tue, 12 Oct 2010 23:57:58 -0400 Message-ID: Subject: Re: Struts2 - Generate XML in an Action, then direct user to download .xml From: Dave Newton To: Struts Users Mailing List Content-Type: text/plain; charset=ISO-8859-1 Which version of Struts?! Stream result if Struts 2, handle the headers and return null if Struts 1. On Tuesday, October 12, 2010, Grant Overby wrote: > I've generated some XML in an action, and I'd like to direct the user to > download it. It should be have as if they clicked a link pointing to the > dynamic xml, eg: ..../yourfile.xml . > > Any pointers on how to accomplish this? > > goverby@students.kennesaw.edu > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org