• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat 4.1.18 does't display svg file... HELP

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All'
I am running ny application on Apache Tomcat 4.1.18. When i am calling svg file, it prompts me to download... instead of rendering and displaying.
On tomcat 3.2.4 and 4.1.0 it works fine... Why not on higher version.... ???
Shall I have to make changes in configuration.... ???
Thanks in advance for the guidance.
Good Day,
Sandeep Oza
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Isn't your problem on the browser side? After all, Tomcat can only serve a SVG file - it is up to the browser to render it.
I suppose it is possible that the mime-type for svg is not mapped properly. In Tomcat 4.1.27 I find the following in the web.xml in the conf directory.

That is not something I would expect to change between versions.
Bill
 
Sandeep. Oza
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you William.
I have tried using mimetype mapping in web.xml file. But still gives download file option instead of rendering. Will I have to install any separate SVG viewer...???
Sandeep Oza
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I dunno - if the same browser could render the SVG file when served by Tomcat 4.1.0 - I would expect it to render the SVG file when served by a more recent one. You have not said which browser you are using.
 
reply
    Bookmark Topic Watch Topic
  • New Topic