Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 49951 invoked from network); 5 Sep 2006 10:21:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Sep 2006 10:21:40 -0000 Received: (qmail 15971 invoked by uid 500); 5 Sep 2006 10:21:28 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 15405 invoked by uid 500); 5 Sep 2006 10:21:26 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 15388 invoked by uid 99); 5 Sep 2006 10:21:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Sep 2006 03:21:26 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of giorgio.clavelli@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO py-out-1112.google.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Sep 2006 03:21:24 -0700 Received: by py-out-1112.google.com with SMTP id f28so2619876pyf for ; Tue, 05 Sep 2006 03:21:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=pWu74vzwvtoVuzec/0J9euTpnOh9qdHns+GbIPYzdqa/KtJjPTmNI6/kFdfXo39zP82aWQPuRlcorNwxlPZz5VPuZ1O7U3XKcwsbB5ny6aqSGn/JAuNPQl/6swbwtSRufme0rrSaUBupzrTPaJveiu/DtPSx3hKWzBjyvkM6xhw= Received: by 10.35.46.6 with SMTP id y6mr12171515pyj; Tue, 05 Sep 2006 03:21:04 -0700 (PDT) Received: by 10.35.119.7 with HTTP; Tue, 5 Sep 2006 03:21:03 -0700 (PDT) Message-ID: Date: Tue, 5 Sep 2006 20:21:04 +1000 From: "Giorgio Clavelli" To: "Tomcat Users List" Subject: Re: How send svg content to browser as response In-Reply-To: <200609051216.13223.mailing-tomcat-user@schoenhaber.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_60937_18502929.1157451664016" References: <6149122.post@talk.nabble.com> <200609051216.13223.mailing-tomcat-user@schoenhaber.de> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_60937_18502929.1157451664016 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline If you are targeting firefox's svg implementation. Have a read at this first: http://jwatt.org/svg/authoring/ On 9/5/06, Markus Sch=F6nhaber wrote: > > prad wrote: > > Am processing some svg files on server side and after processing i need > to > > send the svg as response...I set the mime type as "image/svg+xml" > > and tried the below code > > What has this servlet... > > public void doGet(HttpServletRequest request, > > HttpServletResponse response) > > throws ServletException, IOException{ > > > > response.setContentType("text/html"); > > PrintWriter out =3D response.getWriter(); > > > > out.println(""); > > out.println(" "); > > out.println(" SimpleServlet"); > > out.println(" "); > > out.println(" "); > > out.println(" Hello, World"); > > out.println(" "); > > out.println(""); > > } > ...to do with SVG? > > > when i invoke this servlet .....it's showing download dialog box and if > > press ok .....servletName.svg file gets downloads > > The above servlet shows the behaviour you describe? I doubt that. > > > Why its not directly displaying the contents in the browser...Any help > > plz.. > > You should first of all clarify what you're doing. I don't see any > connection > between the servlet code above and SVG. > > Second: Is your browser capable of rendering SVG content / has a plugin > installed for rendering SVG content? > Does > http://localhost:8080/jsp-examples/jsp2/jspx/textRotate.jspx?name=3DJSPX > work with your browser (assuming your Tomcat is installed on your local > machine and listening on port 8080)? > > Regards > mks > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > ------=_Part_60937_18502929.1157451664016--