You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Akmal Sarhan <ak...@hotmail.com> on 2002/06/11 23:31:49 UTC

generating SVG graphics



Hello,

I am trying to display SVG graphics with turbine, but somehow I got stuck!
I end up with the source code of the SVG displayed as if it was normal XML 
text.

in my Action class:
//String svgString=<svg source code>
data.setContentType("image/svg-xml");
        try
        {
            data.getOut().write(svgString);
            data.getOut().flush();
            data.getOut().close();
        } catch (Exception e)
        {
            e.printStackTrace();
        }

Any ideas what I am doing wrong?
Akmal


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: generating SVG graphics

Posted by TechnoSF <te...@speakeasy.net>.
Try a content type of "image/svg+xml", and potentially, making sure that the url path ends with ".svg".

Don'tchya just love SVG! 

Cheers

M

*********** REPLY SEPARATOR  ***********

On 6/11/2002 at 21:31 Akmal Sarhan wrote:

>Hello,
>
>I am trying to display SVG graphics with turbine, but somehow I got stuck!
>I end up with the source code of the SVG displayed as if it was normal XML 
>text.
>
>in my Action class:
>//String svgString=<svg source code>
>data.setContentType("image/svg-xml");
>        try
>        {
>            data.getOut().write(svgString);
>            data.getOut().flush();
>            data.getOut().close();
>        } catch (Exception e)
>        {
>            e.printStackTrace();
>        }
>
>Any ideas what I am doing wrong?
>Akmal
>
>
>_________________________________________________________________
>MSN Photos is the easiest way to share and print your photos: 
>http://photos.msn.com/support/worldwide.aspx
>
>
>--
>To unsubscribe, e-mail:  
><ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: generating SVG graphics

Posted by Maciej Leks <ml...@zeus.polsl.gliwice.pl>.
Hello!

I do not have mauch time but try to use RawScreen!
To find out more search the list!


Best!


AS> Hello,

AS> I am trying to display SVG graphics with turbine, but somehow I got stuck!
AS> I end up with the source code of the SVG displayed as if it was normal XML 
AS> text.

AS> in my Action class:
AS> //String svgString=<svg source code>
AS> data.setContentType("image/svg-xml");
AS>         try
AS>         {
AS>             data.getOut().write(svgString);
AS>             data.getOut().flush();
AS>             data.getOut().close();
AS>         } catch (Exception e)
AS>         {
AS>             e.printStackTrace();
AS>         }

AS> Any ideas what I am doing wrong?
AS> Akmal


AS> _________________________________________________________________
AS> MSN Photos is the easiest way to share and print your photos: 
AS> http://photos.msn.com/support/worldwide.aspx


AS> --
AS> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
AS> For additional commands, e-mail: <ma...@jakarta.apache.org>





______________________________________
 Leksiu (mleks@zeus.polsl.gliwice.pl)


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>