Problem summary: Tomcat 5.0.24 JSP 2.0 SVG example does not display JSPX rendered SVG file in IE 6 browser. O.k. in Opera and Mozilla. _____________________________________________
I have Tomcat 5.0.24 running on my localhost - Win XP Pro SP1 I am trying out the JSP 2.0 SVG example found here ..... http://localhost:8080/jsp-examples/jsp2/jspx/svgexample.html and then to view the SVG file .. http://localhost:8080/jsp-examples/jsp2/jspx/textRotate.jspx?name=JSPX to dynamically render and display an SVG object in browser .. quote from above page ... _____________________________________________ JSP 2.0 SVG Example This example uses JSP 2.0's new, simplified JSPX syntax to render a Scalable Vector Graphics (SVG) document. When you view the source, notice the lack of a <jsp:root> element! The text to be rendered can be modified by changing the value of the name parameter. SVG has many potential uses, such as searchable images, or images customized with the name of your site's visitor (e.g. a "Susan's Store" tab image). JSPX is a natural fit for generating dynamic XML content such as SVG. _____________________________________________ I am testing this jspx example across several browsers ... IE / Opera / Mozilla IE 6 and Opera 7 both have Adobe SVG plugin, Mozilla has its native SVG reader. These browsers all open and display static *.svg files correctly (with no "file download?" prompt as reported below with IE 6). ... The problem arises with IE 6 trying to open the dynamically generated textRotate.jspx.svg file. In IE 6, instead of opening the rendered SVG object I see a "file download" pop-up window some files can harm your computer etc. etc. File name: textRotate.jspx File type: SVG Document from: localhost Would you like to open the file or save? ... But in Opera, Mozilla and Firefox the jspx generated SVG (from above JSP example) opens in the browser window. And the URL opens SVG file in a Batik SVG viewer. So this is more of a cross-browser problem than a server problem. IE 6 in particular. ############################################################### Q. How can I get IE 6 browser to open and display this JSP 2.0 SVG example - on the fly - without need for SVG file download? ############################################################### This same JSP 2.0 SVG test file can be seen online here .. Jetty server site .. http://jetty.mortbay.org/jsp-examples/jsp2/jspx/svgexample.html Perhaps an IE 6 / Tomcat 5.0.x (localhost) user can go to this standard JSP 2.0 SVG Example and compare results? http://localhost:8080/jsp-examples/jsp2/jspx/svgexample.html then .. http://localhost:8080/jsp-examples/jsp2/jspx/textRotate.jspx?name=JSPX But this preview does require an Adobe SVG plugin to be installed in your IE browser. Here is the SVG plug-in test site to check if you have this plugin installed .. http://www.adobe.com/svg/viewer/install/svgtest.html. ___________________________________________________________ Finally, here are the My Computer | Tools | Folder Options | File Type settings .. for SVG document * Action: open * Application used to perform action: "C:\Program Files\Internet Explorer\iexplore.exe" -nohome %1 * Use DDE: ticked * DDE Message: "file:%1",,-1,,,,, * Application: Iexplore * DDE Application not running: blank * Topic: WWW_OpenURL ___________________________________________________________ Thanks for any insights into solving this IE6 / jspx.SVG display problem. d~l