How to display html document in browser?

Hi, I want to display an html document in my directory using nescape. How can I do that?
I know that AppletContext can display html, but it has to be in URL.
How about a document in my directory?
Help please.

just specify the path, i.e. c:\my files\myDocument.html
or
file:///myfiles/myDocument.html
Of course, I use IE, so Netscape might not like it. but this works for IE.

Similar Messages

  • How to display html document returned by utl_http package (POST method)

    I am using oracle forms 10g, data base version is 10g.
    I have written a database procedure that calls utl_http package POST method and request returns an html document. How do display this html document from oracle form?
    Thank you
    Hema

    Here you have...
    A Full Web Browser Java Bean - Oracle Forms PJCs/Java Beans
    http://forms.pjc.bean.over-blog.com/article-26251949.html

  • How to display file content in browser using servlet..? urgent!!!

    hello,
    i am building a application for which when a user logs in he will we redirected to page where he will have one link ,with this link a file is associated.
    when user press that link he should be able to see that particular file in internet browser....
    now can anybody give me a code sample of how to display a file in browser....
    please reply me as soon as possible...

    thanks for your reply....
    but i don't want this....
    i want to read a file from disk into stream or buffer and from that again reading and printing in browser.....
    a servlet should be built for this....
    i wrote this but its not working
    ========================================================
    public class FilePrinting extends HttpServlet
         public void doPost(HttpServletRequest req,HttpServletResponse res)
              throws IOException,ServletException
              ServletOutputStream out=res.getOutputStream();
              res.setContentType("text/html");
              String fileURL="/mydomainWebApp/Test.htm";
              res.setHeader("Content-disposition","attachment; filename=" +="Test.htm" );
              BufferedInputStream bis=null;
              BufferedOutputStream bos=null;
              try
                   URL url = new URL( fileURL );
                   bis=new BufferedInputStream(url.openStream());
                   bos = new BufferedOutputStream(out);
                   byte[] buff = new byte[2048];
                   int bytesRead;
                   // Simple read/write loop.
                   while(-1 != (bytesRead = bis.read(buff, 0, buff.length))) {
                   bos.write(buff, 0, bytesRead);
              }catch(final MalformedURLException e)
                   System.out.println ( "MalformedURLException." );
                   throw e;
              }catch(final IOException e)
                   System.out.println ( "IOException." );
                   throw e;
              }finally
                   if (bis != null)
                        bis.close();
                   if (bos != null)
                        bos.close();
    =======================================================================
    please send me sample code if anyone have../...

  • How to display HTML response file in user's browser following submission of Livecycle form

    I have a PDF form created via Livecycle that does a HTTP submit to the webserver. The server returns a HTML 'submission receipt' page which is either opened in Acrobat or the user's web browser.
    Previously this process worked fine when submitting from adobe reader - the html receipt file would always automatically open OK in the user's browser. However, with newer versions of Reader (11.0.0+) I now get this error and no attempt to open the user's web browser:
    An error occurred during the submit process. Cannot process content of type text/html
    I realise why I get the error - Adobe reader can't display HTML files.
    What I don't understand is why it doesn't open the html file in the user's browser like it has been doing for years.
    Does anyone have any idea how I can fix this (without changing the response content type to PDF/FDF)?

    I had the same issue as you and we used FDF status, then eventually went with returning an XDP  that filled out a receipt section of the form.

  • How to display word document as a HTML document in portal

    Hi
    I developed a portal application in that i am displaying word document using IFrames, from my application i am uploading word document and saving those document in KM
    Requirement is that i need to provide an option to show this word document in html.
    Thanks
    Rudradev.

    Hi Glenn Mendonca
    I thing it is possible
    Even in SDN search results page, we have option called "HTML version" link
    to see the search document in HTML
    see the below url
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2fforums%2fsdn_forums%2fthread%7b74687265616449443d39313633%7d.jspa
    i hope passing doucment as a query parameter to com.sap.km.cm.highlightedcontent?DocumentUri=
    might solve this
    pls give your inputs
    Thanks

  • How to display Excel output in browser instead of client desktop

    Hi,
    Similar to PDF and Text output, Is it possible to display Excel Output In browser itself.
    Whenever we try to view the report where the output type is excel, the output opens in Excel Desktop version.
    We have a requirement where we need the output to be displayed in browser itself.
    I have tried modyfing the Viewer profiles but was not able to get the desired result. We are currently working on E-Business Suite 11g.
    Regards,
    Sandeep

    for ideas look at
    Export to Excel of a Financial Reporting (FR) Report Opens the Excel File in the Workspace Browser Window (Doc ID 1300573.1)
    and
    How to configure Internet Explorer to open Office documents in the appropriate Office program instead of in Internet Ex…
    so in your case it is vice-versa

  • How to display html content with image in Adobe Flash and Flex mobile project?

    Hi,
      I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • How to display html in SBO forms

    Dear Developers,
    I would like to know how can I display html content in a SBO form. Has anyone any experience in this theme?
    Html viewer in active x or else?
    I have a UDF with <html> code. Is it possible to showing content in B1 forms?
    Thank you in advance.
    Regards,
    Nghia

    simply add activeX WebBrowser control to yout form
    Dim oWebX As SHDocVw.WebBrowser
                oItem = balanceform.Items.Add("browser", SAPbouiCOM.BoFormItemTypes.it_ACTIVE_X)
                oItem.Left = 5
                oItem.Top = 55
                oItem.Width = 980
                oItem.Height = 495
                ' Create the new activeX control
                AcXTree = oItem.Specific
                AcXTree.ClassID = "Shell.Explorer.2"
                oWebX = AcXTree.Object
                oWebX.Navigate("about:blank")
                oWebX = Nothing
                GC.Collect()
    You may chnage the url (file) displayed there trhough oWebX.Navigate("url/file")
    Edited by: Petr Verner on May 7, 2010 7:04 AM

  • How to view HTML document through ABAP in CRM

    Hi,
    I have an internal table with one field type string containing html code.
    How can i see the output of that html document in SAP CRM using ABAP code.
    Is there any standard function module to display the document by passing the internal table?
    Please help.
    Regards
    Kiran

    you can use cl_gui_htmlviewer control to do this.
    check the demo program
    SAPHTML_DEMO1
    RSDEMO_HTML_VIEWER
    or you can use dynamicdocuments for the same check out samples programs in package
    SDYNAMICDOCUMENTS
    Regards
    Raja

  • Displaying HTML document?

    Hi.
    In my little program, output with simple formatting(HTML font and coloring) is produced.
    What I am currently doing now is to write the result with formatting into an Output.html and call the default browser to display the output file.
    It will be a lot neater if I have a little Frame or something in the program itself to display the result.
    Previously I had tried some simple GUI with javax.swing.
    Searching through the Library, I found javax.swing.plaf.basic.BasicHTML which seems to be able to address my problem, but I can't figure out how to use it.
    (It seems to me that "View createHTMLView(JComponent c, String html)" is the output but I can't find how to display the View)
    Could someone kindly enlighten me on whether BasicHTML is the answer to my problem and if so how do I use it.
    Or if I am looking at the wrong area, please teach me what should be the right tool to use.
    (It will be wonderful if accompanied by sample codes)
    Thanks in advanced.

    What my friend Zadok said.
    Something like this
    JEditorPane editorPane = new JEditorPane();
             editorPane.setEditable(false);
             java.net.URL myURL = MyClass.class.getResource(
                                      "my.html");
             if (myURL != null)
                try
                   editorPane.setPage(myURL);
                catch (IOException e)
                   System.err.println("Attempted to read a bad URL: " + myURL);
             }

  • How to display a document content in JSP page

    Hi friends,
    I am trying to display a document's content in a JSP page after user authentication.For that I mapped a jsp file with extension .sens in Content Management SDK manager,and put it the file in the directory '/ifs/jsp-bin' of webstarterapp,but it is not working.Down I am giving the code snippet,please help me.I need this to be done fast.
    <HTML>
    <HEAD>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="oracle.j2ee.connector.Login" %>
    <%@ page import="oracle.ifs.adk.filesystem.IfsFileSystem"%>
    <%@ page import="oracle.ifs.adk.http.HttpUtils"%>
    <%@ page import="oracle.ifs.beans.LibrarySession"%>
    <%@ page import="oracle.ifs.beans.DirectoryUser"%>
    <%@ page import="oracle.ifs.beans.PublicObject"%>
    <%@ page import="oracle.ifs.beans.Document"%>
    <%@ page import="java.io.*"%>
    <jsp:useBean id="login" scope="page" class="oracle.j2ee.connector.Login">
    <TITLE>FileExtension.jsp</TITLE>
    </HEAD>
    <BODY BGCOLOR="SILVER">
    <%
    String theDisplay = "initialized";
    String theHidden = "initialized";
    boolean theAdminRights = false;
    try
    login = (Login) request.getSession(true).getValue("IfsHttpLogin");
    LibrarySession ifsSession = login.getSession();
    IfsFileSystem ifsFile = new IfsFileSystem(ifsSession);
    DirectoryUser du = ifsSession.getDirectoryUser();
    String path = HttpUtils.getIfsPathFromJSPRedirect(request) ;
    PublicObject po = ifsFile.findPublicObjectByPath(path);
    if(po instanceof Document)
    Document doc =(Document) po;
    InputStream in= ifsFile.getDocumentContent(doc);
    int i=in.read();
    while(i!=-1)
    out.write(i);
    in.close();
    out.flush();
    out.close();
    theAdminRights = du.isAdminEnabled();
    theDisplay = po.getAttributeByUpperCaseName("DISPLAY").toString();
    theHidden = po.getAttributeByUpperCaseName("HIDDEN").toString();
    catch (Exception e)
    e.printStackTrace();
    %>
    Here is some static content.
    <P>
    The Display Value: <%= theDisplay %>
    <P>
    <%
    if (theAdminRights)
    %>
    The Hidden Value: <%= theHidden %>
    <%
    %>
    </jsp:useBean>
    </BODY>
    </HTML>

    these may help you.
    Google map integration to EBS

  • How to display HTML file from Unix server on UI at runtime

    Hi Experts,
    My requirement is to display  HTML files,  related to some particular person, on UI. The file is existing on a separate UNIX server and a file related to one person may have a lot of attached files as well , as is the case generally with HTML files, including pictures etc. So it is no use transferring file on my CRM system, as the files are kept separately on this UNIX server which is particularly for this kind of storage.
    I am able to show files residing on MIME repository ( I created some new HTML files )  of my CRM system on UI. but I don't know how to go ahead with this particular requirement.
    One idea is that I can map one folder of my application server to that unix server so that I can see the HTML files in this particular folder. but I don't know how to map MIME repository folder to application server directory or directly to the UNIX server .
    Please advise. Is my approach correct or is there any other way ?
    thanks in advance.
    Regards,
    Vikas

    Maybe this is too simple, but have you got an HTTP server on the UNIX machine? You could simply link the URL into you CRM application and display the contents directly from UNIX.
    cheers Carsten

  • How to display HTML formatted text in the field with Item Style: Raw Text

    How can I display HTML formatted text in the field with Item Style: Raw Text.
    Currently the Item Style is Raw Text, but the text is being displayed along with HTML tags without formatting.
    Regards

    Hi,
    Use Item Style formattedText.
    Regards,
    Gyan

  • How to display html in TreeNode

    Dear,
    I'm making a Tree in jsf,
    In the tree, there are many nodes,
    The Text attribute of node (TreeNode.Text) that I want to set string value as unicode (exp:1: FA08-D1-0004 1: FA08-D1-0004 <b>Tr & # 7 8 4 7;n Th & # 7 8 8 3; Thùy Trang<b>). But I don't want the html code appear, that code must be understand as html code by browser.
    If I user StaticText in the TreeNode, I can setEscape(false), but we can't use StaticText in TreeNode. So that, could someone solve me that problem
    Thanks a lot
    I'm using jsf

    Thanks for your replay
    You can see my code:
    protected void addContestantNote(List outerChildren,Candidatetimes candidatetimes){
    List<Contestant1> contestantList = getContestantList(candidatetimes);
    if (contestantList != null) {
    int i=0;
    for (Contestant1 contestant : contestantList) {
    // Create a new semester node
    TreeNode contestantNode = new TreeNode();
    contestantNode.setId("contestant" + contestant.getIdSeq());
    contestantNode.setText(""+(++i)+": "+contestant.getIdCandidate()+" "
    +"<b>"+contestant.getLastname()+" "+contestant.getFirstname()+"<b>");
    contestantNode.setUrl("/faces/contestantdetail.jsp?tripId=" + contestant.getIdSeq());
    outerChildren.add(contestantNode);
    When I relace:
    TreeNode contestantNode = new TreeNode();
    contestantNode.setId("contestant" + contestant.getIdSeq());
    contestantNode.setText(""+(++i)+": "+contestant.getIdCandidate()+" "
    +"<b>"+contestant.getLastname()+" "+contestant.getFirstname()+"<b>");
    contestantNode.setUrl("/faces/contestantdetail.jsp?tripId=" + contestant.getIdSeq());
    outerChildren.add(contestantNode);
    to
    <b>
    StaticText contestantNode = new StaticText();
    contestantNode.setId("contestant" + contestant.getIdSeq());
    contestantNode.setText(""+(++i)+": "+contestant.getIdCandidate()+" "
    +"<b>"+contestant.getLastname()+" "+contestant.getFirstname()+"<b>");
    outerChildren.add(contestantNode);
    </b>
    that code run well, but nothing displace, I think the StaticText can't display in a TreeNode as children node, the StaticText look like a hidden fields
    I that right

  • How to Display Html Text with Image

    HI Frens,
    I am getting some html text from a source, Later i want to
    display that data, but it may happened that it has some images in
    it. Currently I am using text area to display it.
    Now My question is if there is any image will it show, as we
    can see it in our mails? if Not, Which component I should use for
    this?
    I also want that I need to select some file from, How can i
    get open dialog box here?
    Thks in Advance for replies frens:
    Ashish Mishra

    Hi Ashish,
    If I have understood your requirement properly, u want to
    display html text on a flex application.
    I think there its better if you use the html component to
    display the text. I have a sample code which will give you a
    direction to think on.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    creationComplete="initApp( )">
    <mx:Script>
    <![CDATA[
    public function initApp( ):void
    var initHtml:String = "<html><head> \
    <title='Page Example'/> \
    <body bgcolor='#ccddee'><h1>Page
    Example</h1> \
    <p>This is a complete <b>HTML</b> \
    page as a
    <em>string</em>.</p></html></body>";
    this.html.htmlText = initHtml;
    ]]>
    </mx:Script>
    <mx:HTML id="html" width="100%" height="100%" />
    </mx:Application>
    Also do you want a file open dialog box??

Maybe you are looking for

  • Character Encoding in XML

    Hello All, I am not clear about solving the problem. We have a Java application on NT that is supposed to communicate with the same application on MVS mainframe through XML. We have a character encoding for these XML commands we send for communicatio

  • Pre Order Payment

    I was wondering if anyone new if you can charge a pre order to your account or if you have to pay out right for it? If you do have to pay out right for a pre order can you charge it to the account after it is released?

  • Similar to mysql's store_result

    Hi there I'm selecting a table with 300.000 rows. calling: ResultSet->Next() is getting one row at the time, and over the Internet that is very slow. On mySQL there is a function named mysql_store_result, which gets all the select data in one chunk i

  • One PI system for Dev, QA and Prod..possible?

    Hello Experts, I have been told that there will be just one PI system, for development and the same has to be used as QA in IST and for Production... I have 4 scenarios , 2 are JDBC to Proxy and 2 are file to proxy.. Hence, I have to connect to ECC a

  • How to call Match code ?

    hello Gurus, Normally We can assign a match code to a dynpro field using Match code ID 'Match code' , and this match code will be called automatically when we press F4 for the field. But now i need to call this match code for another Event . ( From a