How to display .doc .xls .ppt in WLS 6.1

Dear friends:
My WebLogic version is 6.1. I put the Word document (a.doc)
under the document root directory (/applications/DefaultWebApp).
I try to invoke this file using IE or Netscape.
--> http://localhost/a.doc
It always displays some error ascii character. I try it under
WLS 5.1, it's okay.
Could you please let me know to to config the WLS 6.1 mimetype,
or is it a bug of 6.1?
Thanks in advance,
Damon

According to BEA, if you edit
/applications/DefaultWebApp/WEB-INF/web.xml and add the following
lines(the example is for Excel), it is supposed to work for the URL
for the default server.
<mime-mapping>
<extension>xls</extension>
<mime-type>application/msexcel</mime-type>
</mime-mapping>
But it still does not work. I suspect it is a bug with WLWS 6.1
Jairam
"Damon Yang" <[email protected]> wrote in message news:<3c1e6500$[email protected]>...
Dear friends:
My WebLogic version is 6.1. I put the Word document (a.doc)
under the document root directory (/applications/DefaultWebApp).
I try to invoke this file using IE or Netscape.
--> http://localhost/a.doc
It always displays some error ascii character. I try it under
WLS 5.1, it's okay.
Could you please let me know to to config the WLS 6.1 mimetype,
or is it a bug of 6.1?
Thanks in advance,
Damon

Similar Messages

  • How to display .doc/.xls file uploaded using blob type of column in table.

    Hi,
    Here
    http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm
    I learnt about uploading & viewing file through BLOB in a form or report . It works fine for pictures & notepad file. But when i upload word file (i.e. *.doc) or excel file ( *.xls ) , and try to view it through DOWNLOAD
    it gives message box
    ' Do you want to save this file, or find program online to open it?'
    I searched lot but enable to find proper & easy to understand solution.
    Hope understand my problem.
    Thanks in advance.

    Hi,
    I am using table emp having fields id,name,,,,,,,,,photo,mimetype,filename,last_update_date.
    photo is of type BLOB. I updated photo (text item) on form.
    I Used BLOB DOWNLOAD Format Mask with appropriate entries & selected display as Attachment.
    So my problem is partially solved. Now if DOWNLOAD link on Form is clicked it displays Excel sheet
    in different window. But still, DOWNLOAD link on my Interactive report not working properly.
    DOWLOAD on interactive if it is clicked it has two problems
    1) It opens image or notepad file in same window.
    2) Not able to open Excel sheet.
    thanks for reply.

  • How to attach a .doc/.xls/.ppt file stored on the iPhone

    While Apple is making patches and updates for the Iphone... it seems they havent come out yet with a solution to solve the day to day problems of the Business
    users.
    I'm using the Iphone 5 for last 6 months.. but i'm still not a able to find a solution to do a simple task of attaching a .doc/.xls/.ppt file which is stored on my iPhone. Why it cant be made simple like other handsets and OS. Its so frustrating while traveling that if i have to send an attachment over a mail thread it can not be done in s simple attach file option. A complete new mail thread has to be started just to send a simple file. I think its high time that Apple really address the business needs which are logical to be there in such a supposedly high tech phone.
    I hope Apple is listening.. mean while if some has a solution please share.... really Important.
    regards,
    Business User

    This is a user-to-user technical support forum. You can leave feedback here: http://www.apple.com/feedback/
    If you are using Gmail or iCloud mail, a combination of the apps Mailbox and Dropbox work nicely. If it is a company MS Exchange deployement, Mail+ for Outlook will do the same with DropBox or Box (plus gives you your mail, tasks, and calendar in one app).

  • How to display Doc file format in the JEditPane?

    At this time , JEditPane supports RTF and HTML file format ,but
    Could anyone tell me how to display DOC file format using JEditPane
    or other JTextComponents?
    Thx a lot!
    Caton

    Hi,
    there is no support for doc files (M$ Word?) in Java. You would have to create your own classes for that eventually subclassing JEditorPane, EditorKit, Document etc. As well you'd need your own reader for the doc format.
    The problem I see with that however is that there is nothing such as thedoc file format. Microsoft just saves anything produced by MS Word into files ending with .doc. But, if there is anything such as a .doc file format, it changes more often than the weather in April.
    Ulrich

  • I could not able to open a .doc,.xls,.ppt inside the iframe tag in IE7.

    Hi all,
    I could not able to open a .doc,.xls,.ppt inside the iframe tag in IE7.
    what should i do?

    Hi,
    Question is,: when ever i call the .doc,.ppt,.xls files are not coming inside the iframe tag in IE7
    I am keeping the all files in separate storage area lik d:/StorageLoc/Docs/Sample.doc
    when ever i am calling the sample.doc through web,
    http://localhost:8080/VContext/OpenFile
    i am accessing the word,ppt,xsl files inside iframe
    like
    var fils= "d:/StorageLoc/Docs/Sample.doc";
    <iframe src="/VContext/OpenFile?r2=fils"></iframe>
    OpenFile.java [servlet file]
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException
    try
    String s2 = request.getParameter("r2");
    String s3 = null;
    String s4 = "txt";
    if(s3 != null && s3.equals("download"))
    response.setHeader("Content-disposition", "attachment;filename=output." + s4);
    if(s4 != null && s4.equals("pps"))
    response.setContentType("application/vnd.ms-powerpoint");
    if(s4 != null && s4.equals("doc"))
    response.setContentType("application/vnd.word");
    if(s4 != null && s4.equals("tif"))
    response.setContentType("image/tif");
    }else
    response.setHeader("Content-disposition", "inline;");
    if(s4 != null && s4.equals("pdf"))
    response.setContentType("application/pdf");
    else
    response.setContentType("application/octet-stream");
    try
    javax.servlet.ServletOutputStream servletoutputstream = response.getOutputStream();
    File fileFound = new File(s1 + s2);
    if(!fileFound.exists())
    s2 = "Photos/notfound.gif";
    FileInputStream fileinputstream = new FileInputStream(s1 + s2);
    ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();
    byte abyte0[] = new byte[0x500000];
    do
    int i = fileinputstream.read(abyte0);
    if(i != -1)
    bytearrayoutputstream.write(abyte0, 0, i);
    } else
    byte abyte1[] = bytearrayoutputstream.toByteArray();
    response.setContentLength(abyte1.length);
    servletoutputstream.write(abyte1, 0, abyte1.length);
    servletoutputstream.flush();
    servletoutputstream.close();
    return;
    } while(true);
    catch(Exception e)
    System.out.println("IGST-INFO:" + e.getMessage());
    e.printStackTrace();
    }

  • How to open DOC/XLS files using UIWebView on iPhone 3.0?

    Hi,
    I am using the following code to display doc/xlst files on UIWebView. It's surprised that I can get the content of the file but cannot show in WebView.
    NSData *myData = [NSData dataWithContentsOfFile: fileDesPath];
    NSString *ext = [m_openFiles.fileExtension lowercaseString];
    NSString *mimeType;
    if ([ext isEqualToString:@"doc"]) {
    mimeType = @"application/msword";
    }else if([ext isEqualToString:@"xls"]){
    mimeType = @"application/vnd.ms-excel";
    }else if([ext isEqualToString:@"wma"]){
    mimeType = @"audio/x-ms-wma";
    }else if([ext isEqualToString:@"jpg"] || [ext isEqualToString:@"jpeg"]){
    mimeType = @"image/jpeg";
    }else if([ext isEqualToString:@"tif"]||[ext isEqualToString:@"tiff"]){
    mimeType = @"image/tiff";
    }else if([ext isEqualToString:@"htm"]||[ext isEqualToString:@"html"]){
    mimeType = @"text/html";
    }else if([ext isEqualToString:@"mov"]){
    mimeType = @"video/quicktime";
    }else if([ext isEqualToString:@"mp4"]){
    mimeType = @"video/mp4";
    }else if([ext isEqualToString:@"txt"]){
    mimeType = @"text/plain";
    }else{
    mimeType = [NSString stringWithFormat:@"application/%@", ext]; //pdf
    NSLog(mimeType);
    //Here, I can get the myData. The value is the content of the doc file.
    if (myData) {
    [self.myWebView loadData:myData MIMEType:mimeType textEncodingName:@"UTF-8" baseURL:[NSURL URLWithString:fileDesPath]];
    After loadData, it cannot show anything in webview!
    Can someone help me in this matter?
    Thanks,
    Message was edited by: Small Apple

    Hi Maurício -
    For your future reference and for the information of everyone who comes across this post in the future:
    We host all of our DataPlugins on our website at ni.com/dataplugins.  There are hundreds of file formats supported through the available DataPlugins, and there is also a link on that site where you can request a DataPlugin be written for file formats that aren't currently supported (such as custom *.CSV files).
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • How to display a file (.doc, .xls, .ppt, ...) ?

    I need to display a word document or an excel document?
    How can can I do it ??
    Thanks for any help !!

    you can use the JEditorPane class to display the content!

  • BI-IP How to display  doc/comments links for InfoProviders in other Query.

    Hi All,
    We are using standard document feature to store document/comment about the plan data shown in the planning query. Relevant characteristics have the property 'characteristics is document attrib' turned on/selected for this purpose.
    Finally the comments attaching absolutely correct.  But  I can`t  display icon- "Document links for InfoProvider " in the cell and attached document  in any another query. Besides that query, where this comment was attached.
    This problem is described in SAP Library ( Link:[http://help.sap.com/saphelp_sem40bw/helpdata/EN/a6/607e3ddf01910fe10000000a114084/frameset.htm]).
    Please, help me delete dependence of relevance in the query.

    Hi,
    if the documents don't appear in other queries, then the characteristic values that the documents are linked to are most likely different. Check the values in RSA1 > Documents.
    Also understand that in 7.0 there are now two possible document repositories:
    http://help.sap.com/saphelp_nw70/helpdata/en/42/594e3c6bf4233fe10000000a114084/frameset.htm
    A migration might be required for historical documents:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/c1475079642ec5e10000000a11466f/frameset.htm
    Regards,
    Marc
    SAP NetWeaver RIG

  • Display documents (jpg,doc,tff,ppt,pps,xls,pdf etc) in web dynpro

    Hi experts,
                    I have a requirement to upload the document of any type (jpg,doc,tff,ppt,pps,xls,pdf etc)  to a Z table (may be in a binary format) in a web dynpro application.
    I think this can be achieved through Fileupload view element.
    In another  window, I need to display the document based on what is selected in the table row. Which control or method can display any type of document?  As far as I know, the office control view element can only display documents of type (.doc and .xls).
    Please provide pointers on this or any example will help me.
    Thanks,
    AmitJain

    Abhimanyu,
                  Thanks for the reply. Wonderful it worked like a miracle.
    Awarded full points.
    Thanks
    Code I used in the action:  onactionclick
    METHOD onactionclick .
      DATA: content TYPE xstring.
      DATA:  lr_context_view_node          TYPE REF TO if_wd_context_node.
      wd_context->get_attribute(
          EXPORTING
            name =  `PDF`
          IMPORTING
            value = content ).
      CALL METHOD cl_wd_runtime_services=>attach_file_to_response
        EXPORTING
          i_filename      = 'Default_pdf.pdf'
          i_content       =   content
          i_mime_type     =   'pdf'
         i_in_new_window = ABAP_FALSE
         i_inplace       = ABAP_FALSE
    ENDMETHOD.
    Edited by: Amit Jain on Apr 2, 2009 5:46 PM

  • How to display RTF file and .doc file in JTextPane

    How to display RTF file and .doc file in JTextPane??

    Duplicate post
    http://forum.java.sun.com/thread.jsp?forum=57&thread=567029&tstart=0&trange=30

  • How do we display .doc files or .pdf files inside flex containers like Panel or Canvas?

    How do we display .doc files or .pdf files inside flex containers like Panel or Canvas? (i am talking about Flex web browser application and NOT air)
    thanks in advance.

    Perhaps I was not clear...
    We have a Word doc.
    We want to create a PDF doc from it.
    We want, in Word/VBA, to add content (annotation/text note=sticky) to the PDF from Word via VBA macro.
    What is the best way to do this?
    1. Use a VBA call to the PDF doc to execute the AcroJS (we would pass the content, location, etc for the note in the call) - what is this VBA call that will execute AcroJS in an PDF doc?
    2. Use AIC OLE objects to access the PDF doc.
    From your last answer - it sounds like I cannot add the annotation to the PDF from the Word VBA macro - is that correct?
    Our content is already in the Word doc - We want to execute a macro in Word that will add content to the PDF doc  - can this not be done in Word?

  • How to attach files like .doc, .xls, .pdf  and so on in Design Editor (WYSIWYG)

    Hi,
    I want to attach files like .doc, .xls, .pdf. etc in my Design editor, instead of importing those files. Is there any way to do that. Please help.
    Thanks,
    Vinay Jaassiel Kankipati
    Technical Writer

    Hi Vinay.
    Would these files be editable and if so, where would they reside? If you want people to be able to edit the files, you need to consider where the files are located. If you link directly to a file in RoboHelp, a local copy is copied into your project as a baggage file. If a user then clicks on the link, the local copy is opened and any edits can not be saved back to the WebHelp's output location. However if you were to create an image (like the ones you used above) and added a hyperlink to the file's location - i.e. on a network drive outside the project, this would enable users to edit and save changes to the original file location. Hope this helps.
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • Help! How to read N9500 .doc/.xls files in E90??

    Is there any file converter or specific application to read N9500 office file (.doc, .xls) in e90?? geez.. very annoying indeed..
    thanx

    With N9500 you can save to different format? So save in 9500 to different format and the should at least be opened in PC and again maybe in E90 also.
    So, 9500:
    Menu, Save, Save as... And Change format. Default is epoc / symbian i think (though odd if E90 does not support symbian format)

  • How to display PDF in JSP using Iframe

    Hi All,
    I am using Struts 2. I am building my file in ActionClass with seperate Method like getGeneratedPDF() in which, I am setting header of response and writing into PDF.
    This method will be called from JSP by this way
    s:property value="getGeneratedPDF()" />
    But It displayed Junk Characters , and this PDF is not static (already Generated). It is generated and build on Fly.
    I have 2 questions 1 -- How to display PDF in JSP in proper way without Junk Character in it?
    questions 2 -- How to display it in Iframe?
    Please help me , If you know the solution.
    Thanks in Advance,
    Jimmy

    jamy_26 wrote:
    But It displayed Junk Characters , and this PDF is not static (already Generated). It is generated and build on Fly.A PDF file is a binary file, not a text file, and you're trying to display it as String. Of course you would get "junk characters". Have you ever tried opening a binary file (pdf, doc, jpg, xls, etc) using a text editor like Notepad?
    I have 2 questions 1 -- How to display PDF in JSP in proper way without Junk Character in it?Display it as binary stream, not as text stream. You can display it standalone, just let the link/form/addressbar URL point to some Servlet which writes the InputStream of the PDF file to the OutputStream of the response, along with a correct set of response headers (at least content-type, content-disposition and content-length), so that the browser can open it in the correct application (which is usually Acrobat Reader). If you want to embed the PDF file in a JSP, then one of the ways is indeed using the HTML <iframe> tag.
    questions 2 -- How to display it in Iframe? Just let the iframe URL point to the aforementioned Servlet.
    You can find here an example of a generic file servlet, you may find it useful to get the idea how to do it: [http://balusc.blogspot.com/2007/07/fileservlet.html].

  • How to display and edit the clob datatype column from Data base

    Hi ,
    I have a requiremsnt as below
    1) One Table having some columns with CLOB data type along with varchar columns
    2) need to display the data from DB in search screen and need to be edited clob column in edit screen
    I created EO and VO with that Table and how to display the clob value into the input box for editing.
    using Jdev 11.1.1.5.0 version.
    Can you please help on this.
    THanks & REgards,
    Madhu

    Hi,
    If you are using an inputText component to display a Character Large Object (CLOB), then you will need to create a custom converter that converts the CLOB to a String.
    For custom convertor refer below link,
    http://docs.oracle.com/cd/E2438201/web.1112/e16181/af_validate.htm#BABGIEDH
    (section7.4 Creating Custom JSF Converters)
    Thanks,
    Santosh M E

Maybe you are looking for