How do I configure WL6.1 to download svg Mime Types?

I am trying to not only display an svg object on my screen, but also have full access to its SVGDocument object via Javascript in the pages that contain the embedded svg object. It works perfectly when I open it in a browser directly, but not from Weblogic.
          I can even serve it up on Weblogic, save the results of my JSPs as html, and open it from the file system and the code works fine.
          It's as if Weblogic is not protraying the embedded svg as a valid object with an object model.
          I have tried the following:
          1) I changed my .svg file to a .jsp and added the following line to try and force the browser to recognize it:
          <%@ page contentType="image/svg xml"%>
          2) I configured the svg mime type directly on the console.
          3) I also made sure that my WEB-INF/web.xml looked like this:
          <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
          <web-app>
          <mime-mapping>
          <extension>svg</extension>
          <mime-type>image/svg xml</mime-type>
          </mime-mapping>
          <welcome-file-list>
          <welcome-file>index.html</welcome-file>
          </welcome-file-list>
          </web-app>
          Any ideas? Thanks so much!
          

I've noticed this too. The issue seems to be that it considers space in and around your server tags significant. The best way to cut down on the space is to group your server tags and code closer together. Or course, this sacrifices a bit of code readability. You can either try to strike a balance between readability and white space, or try writing a small app that adds and removes unneeded whitespace from your jsp. That way you could pass the file through your formatter before posting it to yoru server and pass it back through to read it.
          

Similar Messages

  • Downloading spreadsheet mime types via weblogic 6.1

              I'm having a problem with a jsp file -- within the weblogic v6.1
              server environment that wasn't occuring when using v4.5.1.
              The jsp page in question is supposed to handle downloading a
              spreadsheet file via a 'post' method from within another
              (calling) jsp page. The code that (used to) do this looks like
              this:
              <%
              System.out.println("Debug -> /GetSpreadSheet.jsp -> begin");
              //response.setContentType("text/plain");
              response.setContentType("application/vnd.msexcel");
              response.setHeader("Content-disposition", "attachment; filename=list.csv");
              // This is the java class object (previously saved as a
              // session variable) that contains the spreadsheet data
              CList cList = (CList)session.getValue("nameSpace.cList");
              String csvOutput = cList.getCSVOutput();
              // This doesn't work either...
              //String csvOutput = "Testing 1-2-3";
              PrintWriter pw = response.getWriter();
              pw.println(csvOutput);
              pw.close();
              %>
              Note: As you can see, I'm not actually opening an existing
              'csv' file via some file I/O code -- but instead taking a 'csv'
              formated String object 'csvOutput' and feeding it directly to
              the PrintWriter println method.
              With the v4.5.1 app server, when the user acknowledged the
              expected 'download file' dialog box and specified the location
              on his PC to download file, the desired results would happen
              (the file is downloaded). With the 6.1 app server, this jsp
              file goes into a loop (based on entries in a debug log file)
              before eventually timing out. The browser (both NS & IE)
              displays an error page and the file download doesn't happen.
              My original web.xml file (in DefaultWebApp/WEB-INF directory) was
              as follows:
              <?xml version="1.0" ?>
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.
              //DTD Web Application 1.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <welcome-file-list>
              <welcome-file>index.html</welcome-file>
              </welcome-file-list>
              </web-app>
              After reading through some suggestions of some of the WL
              newsgroup postings, I changed it to:
              <?xml version="1.0" ?>
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.
              //DTD Web Application .2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <welcome-file-list>
              <welcome-file>index.html</welcome-file>
              </welcome-file-list>
              <mime-mapping>
                   <extension>xls,csv</extension>
                   <mime-type>application/vnd.msexcel</mime-type>
              </mime-mapping>
              <mime-mapping>
                   <extension/>
                   <mime-type>application/vnd.msexcel</mime-type>
              </mime-mapping>
              </web-app>
              This didn't help. There was no change with the problem.
              Is there anyone out there who knows the secret to this mystery?
              Thanks,
                   -- WC
              

    The problem is that the example obj.conf is wrong.
    Init fn ="load-modules" func....
    This entry belongs in the magnus.conf file (not in the obj.conf file). Place it
    at the end of the file. This will be corrected in the documentation but until
    then
    "yung" <[email protected]> wrote:
    >
    Hello,
    I am having some problems with the plugin for IPlanet6.1 sp1 with Weblogic
    6.1.
    I know that this can be fixed really quickly if someone can provide
    a sample
    obj.conf file and a Mime.types file. I am trying to forward by MIME
    type. Here
    is one of the errors that I am getting (in the error log).
    Thanks in advance.
    [29/Oct/2001:08:43:18] failure ( 2696): Invalid configuration: File C:\iPlanet\Servers\https-yung-w2k.ind.corp.gwl.com\config\server.xml,
    line 31, column 11: Error processing obj.conf line 5: init functions
    are not allowed
    in this objset
    [29/Oct/2001:08:43:18] info ( 2696): Suspend Httpd Service

  • File Download and Mime-Types

    I have some files (txt, xls, rtf, pdf) that need to be downloaded from our site. I
    have an http link to the files on the web page. I've set mime-types for each file
    type in web.xml for that web app. I'm using WLS 6sp2 on Windows 2K. I'm using an
    MVC model for the application with a Controller servlet. Every time anyone tries
    to click on the link and download it, the Contorller kicks them to a default page.
    Can anyone help?
    Thank you.

    Go to IIS Management console. At the server level, go to MIME Types. Add a new MIME type:
    File name extension:
    .mp4
    MIME type:
    video/mp4
    Restart IIS (can't remember if this is required).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How do you configure firefox to save downloading/downloaded files even if they arn't complete?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/868381]]</blockquote>
    ^Title

    Hi Allen,
    I think quick VPN is a solution offered for VPN to the RV series devices in the Cisco Product Line.
    It falls under the Small Business class of devices.
    Please move this discussion to the Small Business Security forum for expert advice.
    Cheers,
    Nash.

  • How may I configure Apple's Mail to not download old e-mails from my Hotmail account?

    When I connect my Hotmail account to Apple's Mail application, it starts to download all of my read e-mails and marks them as unread. How may I configure Mail so it downloads only new e-mails just like it works in iOS?

    Mail/Preferences/Accounts/Advanced check below for POP and the second screen shot for IMAP.
    There also might be a setting in Hotmail if you access via a browser.

  • How to Configure a Servlet Chain Using MIME Types with weblogic5.1?

    Hi ,
              I want to configure a servlet(cocoon) in weblogic 5.1 such that the
              servlet so configured is invoked each
              time a response with the mime-type "text/xml" is generated.
              1.) will weblogic support to configure a servlet with a particular
              mime-type so that it post-process any
              servlet's response with the corresponding mime-type?
              2.) if not what is the alternative?
              Thanks
              sumanth
              [sumo.vcf]
              

    We suggest that use the request dispatcher interface instead. Servlet
              chaining is not a standard's based possibility.
              Michael Girdley
              WLS Product Manager
              Sumanth Chinthagunta <[email protected]> wrote in message
              news:[email protected]..
              > Hi ,
              > I want to configure a servlet(cocoon) in weblogic 5.1 such that the
              > servlet so configured is invoked each
              > time a response with the mime-type "text/xml" is generated.
              > 1.) will weblogic support to configure a servlet with a particular
              > mime-type so that it post-process any
              > servlet's response with the corresponding mime-type?
              > 2.) if not what is the alternative?
              >
              > Thanks
              > sumanth
              >
              

  • Fedora 13: After upgrading from FF3.6 to FF6.0.2 I no longer have a Java plugin. How do I configure the Java Plugin for FF 6 ? There is no Java Plugin at the site

    I am Fedora 13x64 bit. I just installed FF v6.0.2 from the FF download site. I backed up the existing FF 3.6 as firefox_old
    I need to have a Java plugin to access company site, how do I configure the Java Plugin ?
    At the Plugin area in FF6 there is no Java Plugin available, even after a search.
    I have Java 1.6.0 installed in the OS at:
    /usr/lib/jvm/java-1.6.0/jre/lib/amd64/libnpjp2.so
    I googled how to configure Java Plugin for FF 6 for Fedora 13 and the trick was to create a soft link from /home/<userID>/.mozilla/plugins to the above libnpjp2.so

    AVtech wrote:
    . . . If a person can't get an answer here I don't know where else to turn since Sun certainly wouldn't offer tech support for a free product . . .These forums are user forums, and only occasionally visited by Sun employees. Sun does provide Java technical support options, although (of course) at a charge.
    See:
    http://developers.sun.com/services/
    . . . I guess we'll just use JRE 5 until it's unsupported, whenever that will be. I'm still waiting for an answer on that question, too. See:
    http://java.sun.com/products/archive/eol.policy.html
    http://www.sun.com/service/eosl/
    This document (part IV and Appendix) has some debugging and troubleshooting information that may allow someone involved in the problem to resolve the cause:
    See:
    http://java.sun.com/javase/6/docs/technotes/guides/plugin/developer_guide/contents.htm
    Any steps that you can take to isolate the problem to specific Java versions, browsers, applets, web sites, operating systems (and versions), etc, would enhance the possibility of getting help.
    You can try the applets at this Sun location and see if any of them are "slow".
    See:
    http://java.sun.com/javase/6/docs/technotes/samples/demos.html

  • How do you configure a farm name in RDS 2012?

    I understand Remote Desktop Services has undergo some drastric changes.
    How do you configure a farm name in RDS 2012? Or is the concept around farm name changed in another concept?
    Although I have imported a certificate on the RDCH withe the farm name I want to use. When I click on a RemoteApp on the RD Web Access portal, it does not connect to the right farm name.
    Boudewijn Plomp, BPMi Infrastructure & Security

    You don't.  You create a collection.  A client connects to the Connection Broker and then is redirected to the collection it is connecting to.  The collection name is embedded in the connection file that the client downloads from RDWeb or
    the RDWeb feed. 
    A collection is basically at least one RDSH server (for session based desktops) or one virtual machine (virtual machine based desktops). 
    Don Geddes - SR Support Escalation Engineer - Remote Desktop Services - Printing and Imaging

  • How can I configure one of the gateway NI9792 Ethernet port to communicate with a cRIO PAC ?

    Hi NI Engineers,
    I intend to use my gateway NI9792 the following way:
    1. One Ethernet port for network connection. That's how I'll develop it, download software and monitor my application through my PC at my desk.
    2. Can the other port be used to communicate with a cRIO device? If so, how can I do it?
    It seems to be a stupid question, but I truly could not work this out!
    Thanks in advance,
    Luiz
    "Together we stand, divided we fall..."
    Certified LabVIEW Associate Developer
    Solved!
    Go to Solution.

    Good afternoon, Luiz
    Follow the first link to guide which module can be used and other links to the best part of bore configuration CRIO. Any questions please contact us.
    How Do I Configure My Time Server on the NI WSN-9791 or NI 9792 Gateway?
    http://digital.ni.com/public.nsf/allkb/44FA322FAFF8D58D862575BD00591A54?OpenDocument
    NI WSN Product and Configuration Guide
    http://zone.ni.com/devzone/cda/tut/p/id/8710
    Configuring the Dual Ethernet Ports on Real-Time Controllers
    http://digital.ni.com/public.nsf/allkb/67F94BB93BCE32CF86257367006B3659?OpenDocument
    video setup and installation CRIO
    http://www.ni.com/swf/demos/us/crio/outofbox/
    Automatic Network Configuration for cRIO-9073 and cRIO-9074 CompactRIO Controllers
    http://digital.ni.com/public.nsf/allkb/37C790309A210A748625757000570938?OpenDocument
    Sincerely,
    Mauro Vera.

  • How do I use AirPort Extreme to be able print from my MacBook Pro AND a PC. If I connect printer into AirPort, I can only print on laptop. If printer is connected to PC hard drive, I can only print on desk top. How do I configure this to make both print?

    How do I use AirPort Extreme to be able print from my MacBook Pro AND a PC. If I connect printer into AirPort, I can only print on laptop. If printer is connected to PC hard drive, I can only print on desk top. How do I configure this to make both print?

    If you have not already done so, your chances will really improve if you....
    1) Connect the printer to the USB port on the AirPort Extreme
    2) Download and install Bonjour Print Services for Windows on the PC

  • How do i configure my lion server to update my other workstations

    I have a brand new Mac OS X Lion server. How do I go about setting up my Lion server to download updates for my other workstations (about 30). These workstations are mixed with Macbook Pros using 10.6 as well as some using 10.7, iMac's using 10.6 and 10.7 and Mac Pros using 10.7.
    What do I need to do on the client side as well so that they can download from my OS X server. I have created a DNS entry for my OS X server in my DNS as well as a static IP.

    How do I go about setting up my Lion server to download updates for my other workstations
    Use Server Admin to turn on the Software Update Server. Give it a while to download all the updates. Done.
    What do I need to do on the client side as well so that they can download from my OS X server
    How do the clients connect to the server? Are they using central accounts via Open Directory? or are they local accounts on each machine.
    If you're using Open Directory you can control the software update server via Workgroup Manager, otherwise you'll need to walk through each machine and update its software update configuration. Apple have a tech note that describes how to manually configure each client to use your server.

  • How do I configure a Pioneer DVR-XD10 external dvd writer to my macbook pro laptop?

    How do I configure a Pioneer DVR-XD10 external dvd writer to my macbook pro laptop?
    I read online that you could use an external dvd writer on a macbook pro when the internal dvd writer died.
    Please help?
    It shows power running through the external dvd writer when I plug in the two usb ends into the respective ports, but it doesn't recognize it when I try to write media to a DVD.
    Any help would be greatly appreciated.
    Thanks in advance!

    If you have not already done so, your chances will really improve if you....
    1) Connect the printer to the USB port on the AirPort Extreme
    2) Download and install Bonjour Print Services for Windows on the PC

  • How do I get a file to download?

    I have a site built in Dreamweaver. I have a file I want
    users to download. How do I configure a link so users click on it
    and the file downloads?
    Thanks!

    To ensure it's downloaded, archive your file into a .ZIP or
    .RAR.
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Web Dev Articles, Photography, and more:
    http://pixelyst.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "Shane H" <[email protected]> wrote in
    message
    news:ec778i$f4s$[email protected]..
    > Did you really just ask that?
    >
    > --
    > Shane H
    > [email protected]
    >
    http://www.avenuedesigners.com
    >
    > =============================================
    > Web Dev Articles, Photography, and more:
    >
    http://pixelyst.com
    > =============================================
    > Proud GAWDS Member
    >
    http://www.gawds.org/showmember.php?memberid=1495
    >
    > Delivering accessible websites to all ...
    > =============================================
    >
    >
    > "weblicker" <[email protected]> wrote
    in message
    > news:ec6uij$6cq$[email protected]..
    >>I have a site built in Dreamweaver. I have a file I
    want users to
    >>download. How do I configure a link so users click on
    it and the file
    >>downloads?
    >> Thanks!
    >
    >

  • Do I need to buy a web hosting package to publish with iweb, and how do I configure Filezilla?

    Hi,
    I've created a website using iweb and have bought a domain name from 123reg and downloaded Filezilla as the FTP server. How do I configure Filezilla to my server and do i need to buy a web hosting package?
    Thanks!

    To use FileZilla, or iWeb's built-in FTP, you need a webhosting package.
    Which one? Start with your own ISP. Otherwise its like answering what's a good grocery store.
    The webhoster will provide the details of what to enter in the various fields.
    Perhaps 123Reg offers what you want? They do actually.
    You must have seen it when you visited their pages.

  • I have just restored my iPad. When I try to set it up, it tells me that my configuration can not be downloaded. Never seen this before. Any ideas?

    I have just restored my iPad. When I try to set it up, it tells me that my configuration can not be downloaded. Never seen this before. Any ideas?

    Hello Abdo_Zain,
    I would be concerned too if I was not able to gain access to my iPad.  If you are unsure what your Apple ID is, you can find the steps in this article:
    Apple ID: How to find your Apple ID
    http://support.apple.com/kb/HT5625
    You can reset a forgotten Apple ID password by going to the following link:
    Apple - iForgot
    https://iforgot.apple.com
    Also, you may be able to skip the step of entering your Apple ID if you are setting up the iPad for the first time.
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for