MIME-TYPE is stored incorrectly sometimes, browsers can't display html content

Our company is switching from Netscape Communicator to Internet Explorer 5.5 . This resulted sometimes in html-documents which could not be opened in netscape anymore, but caused the save-as dialogue box to pop-up.
Analysis of this problem, with the aid of Oracle Support, showed some html-documents were stored in WWV_DOCUMENT with mime-type application/octer-stream. This is a mime type which should trigger the save-as pop-up dialogue in browsers. Netscape acts accordingly, but IE does display the content normally.
The following events cause this problem:
1. create a html document using a microsoft office product (word/excel)
2. DON'T close the document in the office application
3. Use the portal wizard to upload the file to a content area
4. Use table WWV_THINGS and WWV_DOCUMENT and see mime-type isn't text/html but application/octet-stream
5. IE shows the file, NN wants to save it.
The workaround to this problem is to close the file in MSOffice before uploading it.
Oracle Development confirmed it's the browser which sends this incorrect mime-type, and portal just stores this type. It seems this mime-type is overruling the extension to mime-type mapping in the configuration of Apache, using AddType or the file mime.types.
So the mime-types defined in apache are only used outside mod_plsql, that is, when files from the filesystem of the webserver itself are used.
When uploading a zip-file, and unzipping it in the database, all files get the right mime-type. It seems in this situation the mime-type is determined by looking either at the file-extention or the magic bits.
Oracle says it's a microsoft bug, so I'll have to ask Bill for a fix.
They are probably right, and I think I could reproduce this using CGI-scripting without modplsql and portal.
But:
It seems not logically to me that it depends on the method of uploading files (single files, or zipped files) which method of mime-type determination is used.
Furthermore, I find it strange that it depends on the storage location of the file (database or filesystem) which mime-type is presented at the user.
I'd like to hear your opinions about this
Regards,
Ton Haver

You want to be using <html:link forward="YOUR_FORWARD"> only when you want to forward to static elements and not elements that require actions. So in index.jsp, since you just want to forward to a static jsp page (allarticle.jsp), you can use
<html:link forward="show">Show All forum</html:link>But since you want your "one forum" link to populate a session attribute BEFORE loading /jsp/loveforum.jsp, you need
<html:link action="article">one forum</html:link>The reason it's not working now is because you're accessing a session attribute that isn't populated becuase you link to the page statically and it never gets the value of "list" actually stored in the session.
The reason it works when you change your forward element is because it calls the action that saves "list" into your session.

Similar Messages

  • My 32gb Touch was stolen but have content stored in iTunes.  Can I sync all content including notes, calendar, apps, etc to the iPhone 3GS?

    My 32gb iPod Touch was stolen but have content stored in iTunes. 
    Can I sync all content including notes, calendar, apps, etc to the iPhone 3GS 16gb? 
    And, will the data that was stored on the iPod Touch be recovered?!  Obviously I will have to unclick some of my photos and music for example in order to fit content onto the iPhone 

    If you had synced the ipod to the itunes yes
    connect your iphone to itunes and then under devices u'll see iphone right click and u'll see restore backup

  • How can I display all content (graphics)

    On Skynet (United airlines employee website), when I try to look at the "seat selection" window, it displayes only numbers, it does not display a graphic of the cabin (seats). How can I display all content?

    You can see that it is a font issue by the appearance of the little boxes with the hex code of the characters that Firefox displays when there is no font that covers this Unicode range. You might see a different character in case you would have a font that maps this font.

  • Can I display html pages in flash player

    Hi all,
    Can I display html pages in flash player, i mean swf. Plz
    help me if it can be done. Can I call html pages in flash (i mean
    in flash player no new window)
    Thanks

    hi,
    Actullay i want the site to be opened with in the flash
    player, just like iframe in dreamweaver calling the external site
    in the mail html page. Plz Help me accessing external site page
    with in flash player
    Thanks

  • Can i display HTML

    Can i make this code display HTML, and how?
    Examples and comments please. i need help
    Simpletext Java Applet.
    Applet displays a text file from the web in a text area.
    The Text Area is as large as the APPLET Width and Height commands.
    There is no animation
    It loads quickly
    And provides information that can be provided quickly.
    Utilizes the following Params
    <PARAM NAME = "filename" Value = "URL">
    <PARAM NAME = "fontname" Value = "Fontname">
    <PARAM NAME = "fontsize" Value = "Fontsize">
    This is very useful for placing on a page where you want to have information
    added without having to touch the HTML in the page.  It can also be placed into
    a table.
    import java.awt.*;
    import java.io.DataInputStream;
    import java.io.BufferedInputStream;
    import java.io.IOException;
    import java.net.URL;
    import java.net.URLConnection;
    import java.net.MalformedURLException;
    public class simpletext extends java.applet.Applet implements Runnable
      URL theURL;
      Thread runner;
      TextArea ta = new TextArea("Getting text...",7,70);
      public void init() {
        String fname = getParameter("fontname");
        String fsize = getParameter("fontsize");
        int fs = Integer.parseInt(fsize);
        Font tafont = new Font(fname,Font.PLAIN,fs);
        String url = getParameter("filename");
        try { this.theURL = new URL(url); }
        catch ( MalformedURLException e) {
          System.out.println("Bad URL: " + theURL);
      ta.setEditable(false);
      ta.setFont(tafont);
      setLayout(new BorderLayout());
        add("Center",ta);
    //    string fnts = getFontList();//not yet implemented in Toolkit
      public void start() {
        if (runner == null) {
          runner = new Thread(this);
          runner.start();
      public void stop() {
        if (runner != null) {
          runner.stop();
          runner = null;
      public void run() {
        URLConnection conn = null;
        DataInputStream data = null;
        String line;
        StringBuffer buf = new StringBuffer();
        try {
          conn = this.theURL.openConnection();
          conn.connect();
          ta.setText("Connection opened...");
          data = new DataInputStream(new BufferedInputStream(
                   conn.getInputStream()));
          ta.setText("Reading data...");
          while ((line = data.readLine()) != null) {
              buf.append(line + " HERE\n");
         ta.setText(buf.toString());
        catch (IOException e) {
          System.out.println("IO Error:" + e.getMessage());
    }

    Well now we are getting somewhere.
    Yes your right it is a copy and paste job, i needed
    somewhere to start and found that and thought it was
    good.
    I have been coding PHP/MySQL/HTML for years now so i
    think i am ready to learn java.
    PHP! Ick!
    i have been following the tutorials at:
    http://java.sun.com/docs/books/tutorial/getStarted/cup
    ojava/index.html
    and iv read up to:
    http://java.sun.com/docs/books/tutorial/java/data/garb
    agecollection.html
    Well that's a good start.
    The point of my applicvation:
    To display realtime quotes (stock prices). or atleast
    with 30 second updates.Ah-ha!
    here is my PHP version:
    http://www.fxdon.com/pgs/main_indices_frame.php
    (which updates every 30 seconds)more Ah-ha!
    >
    and what i ment about security, is i didnt want to
    "Hard-Code" SQL database details into this incase
    someone somehow can decompile it.?This is a good reason. Also because then you don't have to open up the database to socket connections from anyone on the net.
    I just thought it would be easier to have unix cron
    update the database automatically and use php page to
    fetch the updates and java to display it.
    Also i cant make php page refresh automatically like
    u can with java, i have to use some meta refresh
    tags.Okay.
    >
    Am i on the wrong track?Yes.
    What you need to do is basically implement a simple webservice. (This seems to be a popular topic today.)
    The idea is that the data comes from your site through HTTP but it is not really a web page. It is some sort of data page.
    Before I go further I am going to suggest something rather simple. A better model might use a webservice standard of some sort and return the data in an XML doc for example. You can read more about webservices in Java here http://java.sun.com/webservices/index.jsp
    Now here is my example.
    On the server have a php script like this.
    <?php
    /*I am assuming an open mysql connection here. Also that your GET
    request variables are being parsed and are available for use*/
    header("Content-type: text/plain");
    if(!$sym){
      echo "FAIL\nNO SYMBOL\n";
    }else{
      $rs = mysql_query("SELECT company,lastrade FROM stockprice WHERE symbol=".$sym);
      if($row = mysql_fetch_row($rs)){
        echo "OK\n";   
        echo $row[0]."\t";
        echo $row[1]."\t";
        echo "\n";
      }else{
        echo "FAIL\nUNKNOWN SYMBOL\n";
    ?>Then when you want to get the data from the applet you put in the url like this..
    www.mysite.com/mystockpriceservice.php?sym=AAA
    And the content returned will be a text file.
    The first line will say OK if everything worked or FAIL if it didn't. If it fails then the second line tells you why.
    If it does work then the second line will be a tab delimited string of all the values.
    Then you can do as you want in the applet to display that data. As a ticker or whatever.
    Do you see where I am going with this?
    Like I said this implementation is rather simplistic but the basic idea is there.

  • In struts Can't display dynamic content using "include"?

    Hi everyone:
    I am using struts1.1. I have a index.jsp and it have a hyperlink "<html:link forward="show">Show All forum</html:link>". In my struts-config.xml there is a element:"
    <global-forwards>
    <forward name="show" path="/jsp/allarticle.jsp"/>
    <forward name="oneforum" path="/article.jsp"/>
              <action path="/article" type="lyo.hotmail.bbs.lovearticle.Savelovearticle" input="/jsp/error.jsp">
              <forward name="success" path="/jsp/loveforum.jsp"/>
    </action>
    I want that the index.jsp will redirect to allarticle.jsp when user click the hyperlink "Show All forum".
    In the allarticle there is a hyperlink "<html:link forward="oneforum">one forum</html:link>"
    The Savelovearticle is an Action class and it disply all the data from database.I using "if(list!=null){
              session.setAttribute("listtable",list);
         }".I display all the content using "<logic:iterate id="love" name="listtable">
    " tag in allarticle.jsp.
    But the Tomcat report error "can't find listtable in any scope"?
    The problem is if I change the struts-config.xml to:
    ////////////////////////after change///////////////////////////////////////////
    <global-forwards>
    <forward name="show" path="/article"/>
    <forward name="oneforum" path="/article.jsp"/>
              <action path="/article" type="lyo.hotmail.bbs.lovearticle.Savelovearticle" input="/jsp/error.jsp">
              <forward name="success" path="/jsp/loveforum.jsp"/>
    </action>
    It will display all the content successfully.Why?
    Whether because that the Action is a servlet so it must retrieve a request directly.My first code don't send the request to the servlet other than send the request to a jsp page.The jsp page can't send the same request to the servlet so the error happened.right?
    How do I fix it?Thks :(

    You want to be using <html:link forward="YOUR_FORWARD"> only when you want to forward to static elements and not elements that require actions. So in index.jsp, since you just want to forward to a static jsp page (allarticle.jsp), you can use
    <html:link forward="show">Show All forum</html:link>But since you want your "one forum" link to populate a session attribute BEFORE loading /jsp/loveforum.jsp, you need
    <html:link action="article">one forum</html:link>The reason it's not working now is because you're accessing a session attribute that isn't populated becuase you link to the page statically and it never gets the value of "list" actually stored in the session.
    The reason it works when you change your forward element is because it calls the action that saves "list" into your session.

  • How can i display HTML text in a TextArea

    Hello All,
    We are developing a chat application using Java Swing and RMI with MySQL as backend.
    We have two options.The users can chat thro both browser and application(Swing GUI).
    Now when a user who chats thro a browser sends a message,the chat contents are stored in HTML format in the database (like <BR><font>R u There?</Font></BR>).When the other user happens to chat thro the application,the chat contents send by the other user has to appear in the HTML format in the TextArea of the application.So obviously the textarea shud understand the HTML and display it accordingly.
    How can i do this?Kindly give me an example with some code samples if i have to use EditorPane etc 'coz i haven't got any experience using EditorPanes.
    Thanks in advance
    Regards
    Vijayakannan

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test extends JFrame {
        public Test() {
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         Container content = getContentPane();
         JEditorPane jep = new JEditorPane("text/html",
                  "Joe: <font color=red>R u <b>There</b>?</Font><BR>"+
                  "Mary: <font color=green>Keep ur shorts on...</Font>");
         content.add(new JScrollPane(jep), BorderLayout.CENTER);
         setSize(200,200);
         show();
        public static void main(String[] args) { new Test(); }
    }

  • Can GoodReader download html content and save?

    The question is vague, but what I mean is the following:  If I download an html link in GoodReader, I can click on the link and then it loads the page.
    But to avoid downloading a number of times, is there a way to save the content in a pdf so the content is stored on the iPad?
    This would be like printing to pdf on a mac, so the document resides in pdf on your system.
    Thanks

    Thanks.  This helped.  Though apparently it just downloads and stores the text, not the icons of pictures, which appear off line as question marks.  The reason I didn't notice this is that the thing I tried had the desired text inside the graphic, so nothing appeared off line.
    By the way, some sources (e.g. the New York Times) have a "Print" version, which just shows the text without all the graphics, but when yu try to download these, it loads the original article. 
    Something like "Print to pdf" with the pdf loaded onto the iPad still would be nice.
    Thanks.

  • Can't display any content in safari

    I guess it was after the last update to Mac OSX 10.4.8, my safari stop working any more. The browser stay blank when I open it (actually it's loading the content in the background
    because if i drag the right bottom corner to resize the window, the content appear but stuck at the screen)
    It feels like safari stop refreshing the screen.
    Is there any way to fix it??
    thanks

    Hello Thy,
    If I may add to Andy's always good advice, whlist he is off on his boat;-)
    In Safari Preferences, Appearance tab: check that,
    Display images when page is opened: is√ on.
    Could you please post a screenshot of the loaded background Safari window you can use Photobucket to host it.
    I tried everything you said, but none of them solve the problem~
    still very thanks for helping me
    So to recap,
    • Safari did not work in the "Test" account
    • Reapplying the Combined Update Mac OS X Update 10.4.8 Combo PPC
    ~•~~•~
    Do you use a tool to clean up internet clutter, this is freeware. OnyX Use this article to help you Clearing caches with OnyX
    If not please do so.
    Did you then reapply the combined update using these steps ? a. Brody lets review... doing a double reboot, after the install.So when the computer promts for a restart, comes back up restart once again.
    Please read a. Brodys first post, this applies to all updates after 10.4.6
    Try running disc permission repair use this article to help you do that
    Travis A.'s Regular Maintenance/General Troubleshooting
    Good luck, please keep us posted, if any questions please ask.
    Eme

  • RoboHelp 8: can't display TOC content using Chrome

    I just converted from X5 to RH 8. I can open a single Web page in Chrome, but when I click on any of the buttons (Contents, Index, Search, Glossary), they do not work and displaying nothing. I've scoured the boards and found Peter's 103 snippet (http://www.grainge.org/pages/snippets/snippets.htm) and applied it to no effect. What am I missing??? Thanks.

    Okay, I have a fix (thanks to Tulika at Adobe) for those of you who are interested.
    I understand you are using Chrome 5 to view RH 8 output. Chrome 5 has a strict security policy for html pages viewed locally (from disk and not from some web server) because of which iframes in RH 8 output fail to load. If you publish the same output to any web server and view it in Chrome from there, it will work just fine for you.
    To enable local viewing of your output, you will have to disable this extra security check in chrome. You can do that by launching Chrome.exe with "--allow-file-access-from-files" option. Kindly ensure that you close all open Chrome instances and then launch Chrome with this option.
    You can find more details about this security issue in Chrome at this link : http://blog.chromium.org/2008/12/security-in-depth-local-web-pages.html
    Here's what I did to implement this fix and locally (and correctly) view my help in Chrome:
    Create a NEW Chrome shortcut on the desktop and rename it to RH Chrome (or some such indicator).
    Right-click the new Chrome icon and choose Properties.
    Add the "--allow-file-access-from-files" text to the end of the path displaying in Target, as shown in the below image. Make sure you leave a space between the original string and the tag you are adding to the end of it.
    Click OK to save.
    If you have any Chrome instances open, close them.
    To test, launch an instance of Chrome using the shortcut you created.
    Go to your file system and right-click any .html file in your RoboHelp WebHelp directory and choose Open with and then Google Chrome. Please note that I had to add Chrome as an "Open with" option. Because you have your customized instance of Chrome already opened, Help will auto-launch using that instance. I'm sure there's a better way to auto-launch this from RoboHelp itself, but this was a quick and dirty test just to make sure it was working.

  • Can folders' index.html contents avoid containing such folders' names within their urls, please?

    Could Dreamweaver’s file panel folders (located to the right, within Dreamweaver CS5.5, etc.)  potentially contain index.html files that do NOT share such folders’ actual names within their own urls?
    The reason I ask is that I would like to create various index.html sub-directories that will all be linked from yet another index.html subdirectory, for web surfers’ convenience.   It would really help me keep them all organized (for occasional updates' sake) if I could keep them in a folder within Dreamweaver’s file panel that at least resembles that other index.html subdirectory’s name, though.   However, it seems that moving index.html files to such an "alpha" folder inserts that alpha folder’s name into the contained urls, not just its own.   Can this be avoided or worked around, somehow, please?     In case it helps, I have CS5.5 and will have CS6 upon its release date.   Any thoughts, please? 

    Thanks for the preliminary response.   It would really help me keep index.html files organized (for occasional updates' sake) if I could keep them in a folder within Dreamweaver’s file panel  (to the right) whose name does NOT appear in those individualized urls. 
    To give you an example of why I'd like to be able to do this, let's say one wants to have a folder named California, and that various index.html files will be linked from the actual California page.   If one wants to update all pages that belong in the California directory, without having to sort through pages that correspond with (for example) Oregon or Arizona that one ALSO maintains, it could be greatly facilitated if such index.html files could be organized into a California file or something whose name is close to it.   If a page is named "Sacramento" then it need not have California in the url.  Indeed, longer urls are less appealing for the purposes of this endeavor.    So in using this concrete example as background, perhaps my initial question makes more sense now?   At any rate, thanks for trying 

  • Can I add html content to a newsstand magazine in InDesign

    I am making a digital magazine that will go onto the App Store and wondered how to add html content. Thanks.

    Moved to DPS...

  • How we can load external html or php file in flash?

    Hi there,
    I want to show my php's file desing in flash..
    i m getting data through database in php file and it has
    table... so I want to show that data in my flash movie...
    Please help me ..
    How can I load external html or php file in flash?
    If any other way is there then plz tell me.....
    thanx

    No.  Flash can only display html content in textfields and only supports a very limited number of html tags (look up the htmlText property of TextFields).  So to display an html/php file is not possible.

  • Libreoffice mime-type icons

    Hi,
    i'm curious to know if i'm the only that have ugly mime-type icons for LibreOffice files (.odt .doc .ods ...)
    Before
    I like to see the original LibreOffice mime-type icons, so after a lot of research on the web i've found the solution.
    Following this http://standards.freedesktop.org/shared … atest.html
    The applications mime-type action are stored under /usr/share/mime/packages.
    Here you can find /usr/share/mime/packages/libreoffice.xml the LibreOffice mime-type file and if you open it you'll find something like that:
    <mime-type type="application/vnd.oasis.opendocument.text">
    <comment>OpenDocument Text</comment>
    <glob pattern="*.odt"/>
    <magic>
    <match type="string" offset="38" value="application/vnd.oasis.opendocument.text"/>
    </magic>
    </mime-type>
    In order to see the original icon in Nautilus / Dolphin you simply have to add a line of code that call the proper mime-type icon for example:
    <icon name="libreoffice-oasis-text"/>
    You have to do this for every mime-type type.
    The follow example is for "OpenDocument Text"
    <mime-type type="application/vnd.oasis.opendocument.text">
    <comment>OpenDocument Text</comment>
    <glob pattern="*.odt"/>
    <icon name="libreoffice-oasis-text"/>
    <magic>
    <match type="string" offset="38" value="application/vnd.oasis.opendocument.text"/>
    </magic>
    </mime-type>
    And after this work you can see something like this in Nautilus / Dolphin
    After
    If someone if interested i can post the updated libreoffice.xml file.
    mod edit: Hello gspe, please read Forum Etiquette: Pasting Pictures and Code. Thanks. --fsckd
    Last edited by fsckd (2011-11-07 20:05:21)

    After a bit more research i've found the correct solution for the problem.
    The problem actually is that the libreoffice mime-type icons follow a wrong naming.
    For example if you go in /usr/share/icons/gnome/48x48/mimetypes
    libreoffice-oasis-text.png
    shoud be
    application-vnd.oasis.opendocument.text.png
    And so on for all entry in /usr/share/mime/packages/libreoffice.xml

  • How to specify application by extension rather than mime type (e.g., docx as word, not xml)

    When I try to open a link to a file.docx or file.xlsx, FF sees it as an xml file and wants to open it in my default xml application. I can select Word or Excel (I have Office 2010 installed), but a) it doesn't remember that in the applications list, so I have to browse applications each time, or b) if I set it to always use that type, it tries to open docx in Excel or xlsx in Word, depending on last usage. How can I specify applications by file extension instead of seeing these as the same type of file?
    Thanks,
    Ian
    FF 15.0.1, Win 7, Office 2010

    I don't know if the source server sends the right mime type - it probably doesn't. In fact, now you mention it, I'm not sure I've tried this from any sites except one, which is the one giving me problems. I'll try contacting them about fixing their mime types. Assuming though that they can't or won't fix it, the question still remains - is it possible to set application by extension rather than by mime type?
    Yeah, I can definitely save it and open it, just trying to take the easiest possible route for a quick view.
    Thanks.

Maybe you are looking for

  • Job Close

    Hi, Does anyone know what do the params "PRED_JOBNAME" & "PRED_JOBCOUNT" in FM JOB_CLOSE do when supplied with a job name &  count in the respective field values of the job whcich is executed before the former. Is the FM JOB_CLOSE specific to some au

  • Applications won't open after error in a update using a Apple G4

    Apple G4 wont open applications, it says application switcher error or error type 3, everthing used to work until when updating the mac a error accured it restarted, now it won't open an application without saying error type 3, or when it boots a bom

  • Adding text to PDF form Text field

    Hello there, i'm trying add text to textfield in PDF programatically using java. if text  contain "(" or ")" brakets are not displaying in PDF textfiled,if i convert "(" to "[" then the text is displaying in the pdf textfield.how do I allow "(" insid

  • Alternative Reconciation Account

    Hi All, My Client got scenario where same vendor will be supplying raw material, capital goods and also expenditure items. Since in the vendor master only one recon a/c can be assigned. but client required report of Dr. and Cr. balance of raw materia

  • Disabling always ontop for wifi pop-up window

    I'm not sure this is the correct forum in do this in, but I have a problem with using the Wifi at my university and the multi-desktop feature of OS X Yosemite. When I log onto my university wifi it comes up with a Safari pop-up window detailing my in