Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 57117 invoked from network); 8 Nov 2003 14:16:04 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 8 Nov 2003 14:16:04 -0000 Received: (qmail 91346 invoked by uid 500); 8 Nov 2003 14:15:44 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 91319 invoked by uid 500); 8 Nov 2003 14:15:43 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 91303 invoked from network); 8 Nov 2003 14:15:43 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.183) by daedalus.apache.org with SMTP; 8 Nov 2003 14:15:43 -0000 Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AITsO-0003HF-00 for struts-user@jakarta.apache.org; Sat, 08 Nov 2003 15:15:44 +0100 Received: from [217.228.254.74] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1AITsN-00079b-00 for struts-user@jakarta.apache.org; Sat, 08 Nov 2003 15:15:44 +0100 Message-ID: <3FACFA5C.3010302@cyberspaceroad.com> Date: Sat, 08 Nov 2003 15:14:52 +0100 From: Adam Hardy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en, en-us, de-de MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Dynamic page contentType References: <0B56DC230825D511B89000508BEF3C5B5F3F5E@selxml21> In-Reply-To: <0B56DC230825D511B89000508BEF3C5B5F3F5E@selxml21> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On 11/07/2003 10:16 PM Eric SCHULTZ wrote: > I'm developing an application in Struts that outputs primarily XML; but in > some instances I need it to output HTML of the same ActionForms and Actions. > Is there a way I can change the page forwarded in the Forward depending on > some flag or property?! > > Or is there someway I can set the JSP to output text/html or text/xml > depending on some flag or property (and obviously generate the correct > section based on the flag)? response.setHeader("Content-type", "text/xml"); Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org