Outputing html with svg embed tag

Hi,
I'm trying to output a html file with a svg file embeded in it. I can view the html file on my local machine and through the web server if I directly access the page but when I try to render it through the servlet (which I need to do because I change what SVG the user see's depending on thier last action) it does not display the SVG.
The code to output the file is:
response.setContentType("text/html; charset=UTF-8");
PrintWriter out2 = response.getWriter();
out2.write(sb.toString());
out2.close();
sb is a StringBuffer which has the html contents, which look fine when I do a view source.
I have tried using the outputstream with no success either. The html file is:
<HTML>
<BODY>
<embed name ="graph" src="../objects/ExponentSvgGraphing.svg" width="720" height="500"
     TYPE="image/svg+xml" PLUGINSPAGE="http://www.adobe.com/svg/viewer/install/"/> <!--TYPE="image/svg+xml" -->
</BODY>
</HTML>
Like I say can view locally and through the web server so it must be something I am doing wrong in the Servlet, I have tried changing the content type to image/svg+xml and image/svg-xml but to no effect. Any help / suggestion.
Thanks
Andre

Just a guess:
src="../objects/ExponentSvgGraphing.svg"This path is relative to your servlet, I believe. If you used the HTML you posted there in a static HTML page, then the path would be relative to that page instead. Maybe that's why the difference.

Similar Messages

  • When will firefox be able to support html files in embed tags again?

    A previous question was answered here that stated that firefox did not work with html files in embed tags. Is this a problem that is currently being worked on, or does Firefox just no longer support this?

    hello, a html file is no suitable content for an <embed>-tag. you'll have to use ''iframe ''or ''object ''for it instead...
    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed

  • Quicktime Embed Tags

    Quicktime embed tags, found at:
    http://www.apple.com/quicktime/tutorials/embed.html
    Webpage in question:
    http://taras.shacknet.nu/~public1/plpp/vintro.html
    So I'm trying to put an MP4 video on this web page. I set the AUTOPLAY tag to TRUE. According to Apple's site, the movie will start playing as soon as Quicktime has determined that enough of it has downloaded to allow for uninterupted play. Well, it seems that the movie doesn't start playing until the entire movie is downloaded. I'm completely out of ideas on how to remedy this situation. Additionally, it seems that your browser will just freeze until the whole movie is downloaded. This seems to happen in all browsers on Mac and PC. How do I fix this?
    Also, on a related topic, does anybody know how I can redirect to another web page automatically once the movie is finished? Thanks.
    Message was edited by: Sawtooth501

    So, one bit of confusion. You said that as it is right now my sight can't be viewed with Windows using IE, but I have tested it using Windows IE and I can view in in there just fine (and of course, quicktime is installed). Also, as far as the codecs, I used MP4 Video and AAC Audio, which I thought was standard.
    I did "save as" to the movie in Quicktime Pro, and that put it inside a .mov container. I swithced out the video files. It still seems that the video does not start playing automatically, but waits until the whole thing has downloaded. Am I clear to understand that the problem then is with the <embed> tags that I'm using instead of using javascript? I am a relatively new web developer, and I'm using Dreamweaver CS 3. I could figure out the javascript if I have to, but I want to keep things as simple as possible. Is switching to Javascript the only way to make the movie start automatically? Any way to do it with the <embed> tags that dreamweaver uses? Alternatively, would it be easier just to convert this whole thing to flash video and use that?
    Also, my second question still stands: How do I automatically redirect the page to a different URL once the movie is done playing? Thank you very much for the help!

  • Embed tag for Fonts in AS3 "exception during transcoding"

    Hi,
    I have the following problem, I am embeding a font in a project with the embed tag and I get the following error "exception during transcoding".
    [Embed(source="D:/repo/docs/fonts/FreeSans.ttf", fontFamily="Free Sans", fontWeight = 'regular', mimeType = 'application/x-font')] public var auxFont:String;
    I had this same error in Flex but I found that adding "-managers flash.fonts.AFEFontManager" in the properties of the project, ActionScript compiler, Additional compiler arguments took care of it.
    I need to compile this project with the Flash compiler and not Flex is there any place in Flash that I can add that argument?
    Thanks,
    Ana

    Try this:
              [Embed(source="D:/repo/docs/fonts/FreeSans.ttf",  fontFamily="FreeSans")]
              private var freeSans:Class;
    Than, you can use the embedded font via font property of TextFormat class:     myTextFormat.font = "FreeSans";
    Regards,
    gc

  • I am trying to use the embed tag - to embed an html page with in a page embed src="page.html" /

    <pre><nowiki><!DOCTYPE HTML>
    <html>
    <body>
    <embed src="page.html" />
    </body>
    </html></nowiki></pre>

    The <embed> tag works in Windows IE 9, and Opera, Now! But not in Firefox yet. Whats up with that? I guess we will see who is going to be left behind.

  • HTML Embed tag with Autoplay not working with MP4 file

    Hi,
    I've added this embed tag for my MP4 movie:
    <embed src="myMovie.mp4" width="502" height="309" autoplay="true" scale="tofit">
    It's about 40 Mb big - so I obviously want to start playing as soon as possible so viewers will not wait for a long download. Problem is - it seems to ignore the Autoplay tag - resulting in waiting for a long time seeing the QT logo, and then starts when it's all downloaded.
    Is that because it's an MP4 and not MOV?
    Do I have the tag wrong?
    Alternatively - is there any way to add a progress bar to show the download progress (aside from doing it through Flash)?
    Thanks.

    Thanks,
    While it might be outdated - the "embed" tag worked on both IE and Firefox. I've tried this new code and for some reason it only works in IE, but not in Firefox. I don't know whether I should revert back to the "embed" tag or figure out what would make the new code universal to both browsers.
    Regarding the file itself - I've closed in in a container of MOV in QTPro - and will soon upload it and check it. However, I've tried to re-export that MOV again with the "fast start" check marked - and it bounced the size up from 40 Mb to 267 Mb! I'm still trying different methods of compression - but not seeing good size/quality results. The original came out of Prism Video.
    Thanks.

  • How to use ora:processXSLT to create HTML with BR tags included?

    I am using a .xsl to create HTML for use as part of a notification process. The issue is that if in the .xsl I include the
    tag, when the transform engine runs to make the HTML it creates <br> tags with out the maching </br> tags. (in doing some reading this seems to be a feature of most XSLT engines) But the result is invalid XML, so when I attempt to assign the output to a variable the process faults and I get the following error:
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:processXSLT("XML_PURCHASE_ORDER_to_HTML.xsl", bpws:getVariableData("inputVariable", "payload", "/ns1:XML_PURCHASE_ORDER"))", the reason is The XML data is invalid.
    The XML data is invalid; the reason is "Error on line 100 of document : The element type "br" must be terminated by the matching end-tag "
    ". Nested exception: The element type "br" must be terminated by the matching end-tag "
    Message was edited by:
    mlutze
    Message was edited by:
    mlutze
    Message was edited by:
    mlutze

    You can probably set the output format in the stylesheet, like:
    <xsl:output method="txt" indent="no" omit-xml-declaration="yes" />
    if you really don't want to use xhtml. The result might have to be wraped in a cdata block in the bpel flow?
    cheers
    /Stig

  • How do I use an Edge Animate project with SVG files in InDesign for DPS output?

    Is there any way to include an Edge Animate web content using .svg files in InDesign for output to DPS?
    Edge Animate works great with InDesign, except for when you're using SVG files. I've worked with SVG files on the web successfully (writing .htaccess files and such), but it seems like InDesign doesn't like them.
    This is pretty important because I don't want to have to design multiple renditions on the DPS suite. Currently I have it setup as a PDF format (DPS) and that scales all of the vector-based type perfectly. It would be wonderful if the animations could also be in a vector format so that when the iPad (3) users see the designs, they will scale naturally through the PDF framework.
    Any advice would be invaluable.
    Thanks!

    moved to the DPS forum....

  • Embed tag is not working with Mozilla Firefox 23, 24 and 25

    Requirement:
    While loading the java applet on a page, if the user system do not have plugin loaded then our code should redirect the user to get Java 1.6 plugin.
    At present I am using below two URL for automatically JRE6 download
    • IE : https://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,31<br />
    [When user tries to access the applet page from IE browser then he/she is getting pop-up message for JRE6 installation, provided that the user system don’t have any JRE installed]. This scenario is working IE8,9,10<br />
    • Mozilla family : https://javadl.sun.com/webapps/download/AutoDL?BundleId=60336
    Below is the used script for ‘Object’ and ‘embed’ tag:
    <pre><nowiki><script language="javascript" >
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" name="OrderApplet"';
    WIDTH = 775 HEIGHT = 600
    codebase="https:\/\/java.sun.com\/update\/1.6.0\/jinstall-6-windows-i586.cab">';
    <PARAM NAME = "type" VALUE="application\/x-java-applet;version=1.6.0_31">';
    <PARAM NAME = "scriptable" VALUE = "true" >';
    <COMMENT>';
    <EMBED type="application\/x-java-applet;version=1.6"
    pluginspage="https:\/\/javadl.sun.com\/webapps\/download\/AutoDL?BundleId=60336">
    <NOEMBED>
    <\/COMMENT>;
    <\/NOEMBED><\/EMBED>;
    <\/OBJECT>;
    </script></nowiki></pre>
    User is getting pop-up message for JRE6 installation with browser IE8, 9, and 10 and also with Mozilla Firefox 22, but it’s failing with latest version of Mozilla Firefox23,24 and 25.
    I have gone through so many sites but could find any reason for this behavior.
    I have provided JRE6 32-bit version download URL, here I don’t think so I’m doing any version incompatibility because both the JRE6 and Mozilla Firefox are 32-bit version. And 64 bit Firefox version is not available for windows.
    I’m not sure why the code is working with Firefox 22 and its lower version but
    doesn’t work with higher version than firefox22….like 23,24,25
    Can anyone help to sort out this issue?
    Thanks, <br />
    Sumit

    Sorry for the delay in getting an answer, yesterday was a holiday in the USA.
    This forum is for Firefox user support, not for web developer support. My rough guess is that since Mozilla has blocked all but the most recent update for Java 7 Plugins - https://addons.mozilla.org/en-US/firefox/blocked/ - and Firefox 23 brought in a new '''Simplified interface for notifications of plugin installation''' - http://www.mozilla.org/en-US/firefox/23.0/releasenotes/ - that is probably why you're having a problem with versions of Firefox after Firefox 22.
    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    ''You'll need to register and login to be able to post in that forum''.

  • How to embed jnlp file into html page using object tag

    hi everyone,
    i have written one jnlp file like this.
    <?xml version="1.0" encoding="utf-8" ?>
    <!-- JNLP file for Demo applicaion -->
    <jnlp spec="1.0+" codebase="http://localhost:9080/base/" href="SampleExample.jnlp">
         <information>
              <title>Demo Application</title>
              <vendor> </vendor>
              <description>Sample Demo Application</description>
              <offline-allowed/>
         </information>
         <security/>
         <resources>
              <j2se version="1.3+" />
              <jar href="common.jar" main="true" download="eager" />
              <jar href="classes12.jar" download="eager" />
              <jar href="toplink.jar" download="eager"/>
              <package name="com.applet.*" part="applet" recursive="true"/>
         </resources>
         <applet-desc name="grid" main-class="com.applet.PriceGrid" width="1000" height="300"/>
    </jnlp>
    i am trying embed that jnlp file using object tag like
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">     
    <PARAM NAME="jnlp" VALUE="http://localhost:9080/base/SampleExample.jnlp">
    </OBJECT>
    but i am not able to load the applet using Web Start.
    Can anyone please help me. This is very Urgent for me.
    Thanks & Regards,
    Shiva.

    thanks.
    i am giving my problem clearly. i have one applet. Previously i am loading the applet in my html page using object tag like this...
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">
    <PARAM NAME="CODE" VALUE="com.adp.base.applet.PriceGrid.class" >
         <PARAM NAME="ARCHIVE" VALUE="common.jar,classes12.jar,toplink.jar" >
         <PARAM NAME="NAME" VALUE="grid" >
    <PARAM NAME="type" VALUE="application/x-java-applet">
    <PARAM NAME= "cache_option" VALUE ="no">
    </OBJECT>
    now what i need to do is
    i need load the applet only first time using web start and when ever the applet code changes in the server i need to reload the applet.
    for that i kept all the applet resources in .jnlp file.i want to cache all the resources which are in .jnlp file and applet must be displayed within a web page within a browser.
    Webstart always open a new application windows.
    I need to run an Applet embedded within a web page within a browser.
    Is there a way to still use Webstart?

  • Issue while playing video in firefox 19 using embed tag with mplayer2 plugin

    In mozilla firefox embed tag not working properly. the embed video starts playing after browser is resized. Can anyone help me out playing video in ff without resizing the browser? Below is the html code. The below code works in fine in other browser
    <pre><nowiki>
    <object id="MediaPlayer1" width="400" height="300" classid="CLSID:6BF52A52-394A-11d3- B153-00C04F79FAA6"
    standby="Loading Windows Media Player components..." type="application/x-oleobject">
    <param NAME="AutoStart" VALUE="True">
    <param name="uiMode" value="none">
    <param name="PlayCount" value="9999">
    <param name="url" value="C:\SR\documents\library\2013\Video\sample_1363245215320.avi" />
    <embed type="application/x-mplayer2" src='C:\SR\documents\library\2013\Video\sample_1363245215320.avi' NAME="MediaPlayer" WIDTH="400" HEIGHT="300" ShowControls="0" ShowStatusBar="0" ShowDisplay="0" autostart="1"> </embed>
    </object></nowiki></pre>

    Maybe try to use the file protocol instead.
    <pre><nowiki>src="file:///C:/SR/documents/library/2013/Video/sample_1363245215320.avi"
    </nowiki></pre>
    *http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • CFGRID outputs EMBED tag in IE 6

    Weird problem: On my production machine ColdFusion outputs an
    OBJECT tag for the CFGRID generated applet and everything works
    fine. On my dev machine (same OS (Windows 2003, patch level, CF 5
    service pack, same code) for some reason ColdFusion outputs an
    EMBED tag for the CFGRID generated applet ... and the applet
    doesn't work or show up. I applied all patches and fixes for CF 5.
    I'm using XP and IE 6 against these two systems. It has to be a
    ColdFusion or server setting somewhere. I've tried it on a number
    of machines and the Java VM version of the requesting machine
    doesn't seem to matter.
    Thanks!
    Kegger

    thanks for responding. Yep, tried that also but I am still getting the same "uknown plugin" message on Firefox. Did you try that and it worked? It used to work for me when it was 1.5 but when I change it to 1.6, no go.
    I was at Java One and meant to go to the Deployment BOF to ask the team but didn't manage to get there.
    Thanks!
    Charlene

  • Using WEB Output HTML Gallery and uploading using ftp upload the HTML page views correctly but images only display the alt tag?

    Using WEB Output HTML Gallery and uploading using ftp upload the HTML page views correctly but images only display the alt tag in the browser window?

    After a little investigation, I discovered that PNGs also do not render correctly in IE7 in similar circumstances.
    I ended up using Levels in Photoshop to bring the output blacks up to "5", saved the images as PNGs, modified the HTML from .jpg to .png, and that seems to have covered up the problem well enough.
    By the way, I did confirm that IE8 beta 2 renders the images correctly.
    Brian

  • Problem with embed tag with PDF

    Dear All,
    I am using <embed > tag to embed the pdf file in my jsf page as below :
         <h:panelGrid border="0">
                        <h:panelGroup>
                        <h:outputText value="***********"/>
                         <f:verbatim >           
                        <embed  src="D:\Img\ppp.pdf" height="100%" width="100%" />
                             </f:verbatim>
                             <h:outputText value="##########"/>
                             </h:panelGroup>
                             <h:selectBooleanCheckbox value="true" ></h:selectBooleanCheckbox>
                        </h:panelGrid>when i run the application i am getting java script pop up with header Adobe PDF Document and message as Access denied.
    please help
    thanks in advance

    Hi Raymond ,
    It is not related to JSF actually when i use <embed> tag.if i give the path of the pdf which is in my local machine it is giving that access denied.
    I pasted that pdf in my war and it is working now

  • In Flash CS4 a generated html with swf file won't play swf

    Using Flash CS4 and having the Flash plug-in ver 10 on my PC, the generated html file will not play the swf in the browser.
    I noticed that the active-x javascript is now included in the header as well as the javascript portion in the body tag.
    But it won't play.  I get the typical blank window in IE with the "X" in the upper left corner.
    I don't have this problem with Flash CS3.
    Any ideas what may be going on?
    Thank you.

    I am having similar difficulty; mostly I am confused.
    I want to open a flash video file in a frame within a webpage.
    I have generated a Flash CS4 html and swf file. When loaded they play, but they play on a separate, full size web page, not in the frame where I want it.
    I then generated FLV and F4V files but that doesn't work.
    It appears that I need to insert the object and embed tags "for Flash Movies" in the html file.
    Once I do that, do I go back to only putting in the html and swf files and create a link to the html file to bring up the video in the target frame?
    What are the FLV files for?

Maybe you are looking for

  • External links suddenly open in a new window instead of a tab

    I am using Nightly (20.0a1) on WIndows 8, I use the program Teamspeak 3 and it used to be that whenever I clicked on a link it would just open in a new tab in the Nightly window that was open, but now it opens a completely new Nightly window. I have

  • Itunes 10.6.1.7 (on windows 7 64 bit) recognizes airport express, but will not connect.

    I've attempted disabling all firewalls (both PC and anti-virus), disabling ipv6, rebooting the airport unit itself, but no luck. I'm not prompted with an error, however, as itunes is attempting to connect the airplay icon turns blue, and when it does

  • Can no longer access log files from EM(ECM11.1.1.6.0).

    Full UI popup error is " Stream closed ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #4" Of course, I can't see any further errors in the logs,so I'm

  • My 4 year old macbook pro will not boot up. Help!

    My 4 year old mac book pro has recently had a few episodes where it freezes up during operation, and then when I force shut down, I cannot boot up. When I try to reboot, I get a beep and the little circle spins for a while, then the screen turns a da

  • Odd Shared Variable Dialog Box message

    I came across some odd behavior in the dialog box while I was created a new shared variable. As I was typing in the name, I kept see a warning pop up in the dialog.  It would come and go as typed.  I figured out that whenever I typed a space, and thu