How to display an html located in server to client browser?

Hi,
i want to display an html file located at the server to a client browser. how can i do it? and i want the user to select the particular file thru an open dialog box. will it be possible?
regds,
Abhi...

in general about files :
http://forum.java.sun.com/thread.jsp?forum=45&thread=522723&start=0&range=15#2502318
simple for html: soemdecription

Similar Messages

  • How to display local HTML file in web-view?

    Hello everyone,
    we have no problem with showing of remote HTML content from server in box on page in web view. But how we can show such a content when included in HTMLResources? In guide is just "Display a local HTML file in an in-app browser", which works wihout problem, but we don't want to show this HTML content in in-app viewer, it should be part of page.
    Thanks
    Martin

    Now i'm confused. In guide is this:
    To use local HTML files, click the folder icon and specify the local HTML file. The HTML file (such as index.html) should appear in a folder that includes any images or scripts used in the HTML file.
    But no info where such a local HTML file should reside. If this file is in HTMLResources, it is ignored.

  • How to display the HTML pages in RRC/RQM dashboard using OpenSocial gadget

    Hi,
    I have a requirement as below:
    1. I have couple of HTML pages which are hosted in the sharepoint site and I would like to display the HTML pages
    2. I would like to have an OpenSocial gadget in the RRC/RQM dashboard that will display the HTML pages  which are hosted in my sharepoint site.
    Could you please suggest the best approach to create an OpenSocial gadget in the IBM's RRC/RQM dashboard whcih will display html contents of another URL ?
    Thanks.
    Knowledge is power.

    Hi Manoj,
    As I understand, you would like to display SharePoint page in another platform.
    Since the you are involving third party platform, you might still need to contact their support engineer about how to render other pages.
    From SharePoint side, by default, SharePoint won't let end user to display site page to other platform, you could add "<WebPartPages:AllowFraming runat="server"/>" in master page or single page layout. So that SharePoint ASP.Net
    page could be displayed on other platform.
    Here I'm talking about ASP.Net page, since HTML page in SharePoint cannot be displayed in browser as I tested, it will be downloaded directly. So I'd suggest you use ASP.Net page as workaround.
    https://social.msdn.microsoft.com/Forums/office/en-US/c8755a6b-f33a-43ed-97d9-8f03c336aa1d/how-to-display-sharepoint-url-in-iframe-in-aspnet-page?forum=sharepointdevelopment
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • How to display field Functional Location Field in Asset Master Data

    Dear Experts,
    I really appreciate for your advices on how to display Functional Location Field in Asset Master data.
    I have checked the configuration on path IMG:\Financial Accounting->Asset Accounting->Master Data->Screen Layout->Define Screen Layout for Master Data
    I have chosen the screen layout and review all Logical Field Groups. And there's no field "Functional Location" is available. I also didn't find "Add New" button to add "Functional Location" field.
    Thank you
    Best regards,
    Frans

    Dear Frans,
    I am sorry this is not possible.
    Note 140482:
    The field was created as a precaution. However, it is not being used at 
    present and consequently is not supplied.                               
    In particular, you cannot use the field as a criterion for a selection  
    in Asset Accounting reporting. This is still true even if this field has
    been included in the selection view delivered for the dynamic selections
    by modification.                                                        
    regards Bernhard

  • How to display formated html in a TextArea?

    Hi,
    I'm trying to display some html in a TextArea. But the formatting does not look good.
    here is my mxml file
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml"
         width="100%" height="100%">
              <mx:TextArea id="legend"
                   width="100%" height="100%" editable="false" selectable="false" toolTip="map legend" wordWrap="true">
                   <mx:htmlText>
                        <![CDATA[
                             <p><img src="images/projects.png" /> projects</p>
                             <p><img src="images/publications.png" /> pubpcations</p>
                             <p><img src="images/persons.png" /> persons</p>
                             <p><img src="images/news.png" /> news</p>
                             <p><img src="images/events.png" /> events</p>
                             <p><img src="images/documents.png" /> documents</p>
                        ]]>
                   </mx:htmlText>
              </mx:TextArea>
    </mx:Panel>
    and here is the result...
    Any idea what I am doing wrong?

    I had problems like what you are describing. A picture is worth a thousand words, so take a lookee here: http://www.timos.com/timos/green/ct/CounterThink.cfm. When the app displays, press the link button "About CounterThink", then scroll down to the text block with Mike Adams' photo.
    My problems were fixed when I eliminated all the spaces in the HTML code. My source code for that block now looks like this:
    <p><img src="../../assets/images/green/mike.png" alt="Mike Adams" width="150" height="149" hspace="5" vspace="3" align="left" />The creator of the cartoons, <b>Mike Adams</b> is a consumer health advocate with a mission to teach personal and planetary health to the public He is a prolific writer and has published thousands of articles, interviews, reports and consumer guides, impacting the lives of millions of readers around the world who are experiencing phenomenal health benefits from reading his articles. Adams is an honest, independent journalist and accepts no money or commissions on the third-party products he writes about or the companies he promotes.</p><p></p><p>In 2007, Adams launched EcoLEDs, a manufacturer of mercury-free, energy-efficient LED lighting products that save electricity and help prevent global warming. He's also a successful software entrepreneur, having founded a well known email marketing software company whose technology currently powers the NaturalNews email newsletters.</p><p></p><p>Adams is currently the executive director of the Consumer Wellness Center, a 501(c)3 non-profit, and regularly pursues cycling, nature photography, Capoeira and Pilates. Known as the 'Health Ranger', Adams' personal health statistics and mission statements are located at <a href=http://www.healthranger.org target="_blank"><u>www.HealthRanger.org</u></a>.</p>
    Notice there are no indents, no line breaks, not a single space except for those within the text. The code is a little harder to read this way, but that is what worked. Try it, I hope this works for you. Have fun,
    Carlos

  • How to display static HTML pages in Oracle Forms 6i

    I want to display static HTML page in oracle Forms ? Can any body help please ? Its very urgent. Many thanks in advance.

    Suresh,
    there exist a Java Bean in teh Forms 6i demos that shows a static HTMl example. Note that the HTML that could be shown is somewhat basic, but it will give you an impression how it can work. The demos are at otn.oracle.com/products/forms --> samples --> 6i demos
    Frank

  • How to display a HTML String in a ActiveX WebBrowser ?

    How to direct display a HTML String in a ActiveX WebBrowser without use a URL ?

    I am sure that it would depend on the browser, but with Internet Explorer from Microsoft, I don't think you can. (I may be wrong on this.) What you could do would be to save your string to file and read the file as a url in the browser. I know that this is a step you are trying to avoid, but it will work.
    Hope that this helps,
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How to display a html report on jsp page---urgent

    i want to display a html report wen a tab is clicked.can any tell me how to do tat.

    Didn't quite get your requirement. What do you mean by an HTML report?

  • How to display an HTML file in text Area?

    I am trying to display an HTML formated file in  text area component using Action 3.0. The following script does not generates compiler errors, each function seems to be executed yet the file is not displayed. When trying the same code with myCV.txt and myCV_TA.text = (loader1.data) the text file is displayed OK. Flash MX and actionscript 2.0 had handled that differently but with success???
    ( myCV_TA is the text area component)
    Thanks
    var loader1:URLLoader =new URLLoader();
    loader1.addEventListener(Event.COMPLETE,displayText);
    textload("myCV.html");
    function textload(file:String)
    loader1.load(new URLRequest(file));
    trace("in textload");
    function displayText(e:Event)
    myCV_TA.htmlText = (loader1.data);
    trace("in displaytext");

    hmm.. never tried to use an .html file like that in flash, what's inside that file? text with images tables and so on? the htmltext property supports only a few HTML tags, maybe it's not working because an unsupported tag has been detected.

  • How to display a html file without tags?

    Hello,
    I am new for Java programming. Now i have to display a html file without all the tags. My code is the fllowing:
    u = new URL("http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=protein&val=55584070");
    BufferedReader in = new BufferedReader(new InputStreamReader(u.openStream()));
    while ((s = in.readLine()) != null) {
    System.out.println(s);
    in.close();
    Unforturnately, the output is the soucecode of the html file and I just want the content.
    Please help me.
    Thanks a lot in advance,
    Danica

    Here's a simple example
    http://forum.java.sun.com/thread.jspa?threadID=293830
    I haven't tested it, but I bet camickr did.

  • How to display the HTML File Titles instead of File Names

    Hello All,
    I want to display the HTML file titles instead of File names in the Search Results. I've tried to give this command in the 'Visible Properties' in the 'SearchResourceRenderer' as:-
    Visible Properties: rnd:displayTitle
    However this is not working for me. If anyone has an idea of what to pass here or any other alternative to display the Titles.
    Regards
    Vaib

    Summary of steps:
    1) Standard Layout Set used: SearchResultLayoutSet
    2) Create a new layout set using ADVANCED COPY
    3) Change properties as you require
    4) Next modify the search OTH file to reflect this newly created Layout Set (under KM > root > etc > oth > search.oth edit xml file property rndLaoutSet from SearchResultLayoutSet to MyCustomSearchResultLayoutSet)
    5) Check in the document to complete the editing process if Edit Locally is used!
    6) Lastly, activate the OTH file by –
    •     Setting Debugging settings via Debugging Settings
    •     Performing a normal search
    •     Clicking Rendering information and then following link OTH Overview click on Reload
    7) Reload above reloads the OTH file and performing search again will yield the desired result
    8) To turn off the Rendering Information link remove the user id from Debugging Settings.
    Cheers
    Ankit

  • How to open a file located at server using JSP

    hi,
    i would like to open a file located at server as it is. I mean to say, if it a MS Word file, i wanna open it in MS Word, if it an Excel file, i wanna open it in Excel. i know the location (path) of the file. Can someone help me please.
    Thanx

    The best way would simply be to HREF it.
    ie<a href="excelfiles/spreadsheet.xls">Open spreadsheet</a>When a user then clicks on that lick in their browser they should be given the option to either download or (if they have the appropriate program, in this case MS Excel, installed) open it.
    This works best if the client is using a version of Internet Explorer (if you're dealing with MS files), but any browser should potentially offer you the option of opening the file.
    Beyond that there's no way to specifically open a program on a client machine (it'd be a bit of a security loophole if you could! - Imagine a JSP page being able to open FDISK...). All you can do is pass the file (via the HREF) and let the client decide what to do with it.

  • How to get the HTML Source code from the active browser ?

    Hi All,
    I need to get the HTML Source code from the active browser (IE). I tried with the below code, but I am not able to get the Source code all the time, with respect to the different applications (http or https) and the user authentication has to be changes in few applications (_I dont know or not able to given that in the below code_). More over there is also a dependence of the URL to get the HTML Source code.
    Therefore what I feel is getting the HTML Source code from the given or active browser will be consistent than the URL. Since the Source code is available in the browser (IE) . Please help me with a sample code to achieve this . . . !
    HTMLDocument doc=(HTMLDocument) kit.createDefaultDocument();
    doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
    URL url = new URL(strURL);
    Reader HTMLReader = new InputStreamReader(url.openConnection().getInputStream());
    kit.read(HTMLReader, doc, 0);Thanks in advance,
    Regards,
    Jothi Venkatachalam
    Edited by: j0o on May 7, 2009 3:11 AM

    The simple answer is: you don't.
    Not only is it simply not possible, but the entire concept of "the active browser" doesn't exist.
    You were on the right track with your code to retrieve the page directly from the server, but as you noticed that code will only work for regular http connections.
    For https and other protocols you will need to use appropriate libraries for each protocol. Something like Apache Commons can help you with that. There are networking libraries in there for a lot of commonly used protocols.

  • How do you make html page resize to fit any browser

    Hi All,
    How do you make the html page resize to fit any browser/window both vert and horizontally.
    Thanks!
    Randy

    Horizontally by using percentage width instead of pixels.  This is called a liquid layout.
    http://alt-web.com/TEMPLATES/CSS2-Liquid-Page.shtml
    Vertical resizing is irrelevant in web design.  Page content determines page height.  The more content, the longer the page.  The less content, the shorter the page.  Scrollbars appear when needed.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Returning a html status code to the client browser

    Hi,
    Can anyone help me with a problem that I am have with regard to returning a html status code of NO_CONTENT to the client browser?
    The Problem:
    Basically I have a html form with a SAVE button. When the user clicks the SAVE button the data in the form is sent to the web server which then saves it in a database and the same populated form is then sent back to the client. From the users point of view they click the SAVE button and the screen is refreshed with the same data. The problem with this is that the data only needs to be SENT to be saved but not necessarily resent back to the client browser from the server i.e. from a user's point of view I don't want the screen to refresh by disappearing and then coming back again. There is a lot of data in the form so this refresh can take a considerable amount of time as the html can take a while to download.
    The Potential Solution:
    What I want to do is send the data to the server where it will be saved in the database and then return a html status code of NO_CONTENT to the browser (always Internet Explorer) so that the page doen't get refreshed / downloaded unnecessarily. I've implemented this and the save can now take as little as 10% of the time it used to take because the data is only sent and not received again.
    The problem with the potential solution:
    It works fine most of the time but not all of the time. We tested this change and it worked great but when we released it live it didn't work for some people. For most people you can see the status bar at the bottom of IE zip along as the data is sent to the server so you can see when it has finished or received the status code back. For the people it didn't work for they would get an almost full status bar at the bottom but the blue would never quite disappear to indicate that it was finished. It was as if it was sending the data from the server but not getting a response at all when it should have been getting the NO_CONTENT status code.
    The Code:
    I'm using Struts so the line of code I had originally used after the data had been saved to the database was:
         return (mapping.findForward("timesheet"));
    I changed this line of code to:
         response.setStatus(response.SC_NO_CONTENT);
         response.flushBuffer();
         return null;
    Can anyone see what the problem is here? Are the new lines of code not guaranteeing that the response is being sent back to the client? Is there a better way to simply return a status code when you don't want return a JSP page?
    Any help would be greatly appreciated.
    rgds,
    Dave

    I see what you mean now. It's a very good idea but it wouldn't really work for this application. I've taken out the ability to use "back" functionality on this screen. It is launched through javascript so that the window itself has no toolbar and also the page is set to expire so that if you do go "back" to it, you are forced to refresh the page so that it is guaranteed to have the same data as is on the server. This is needed to stop problems with other functionality of the application.
    Thanks for the suggestion though.
    Does anyone know why this code only works most but not all of the time?:
    response.setStatus(response.SC_NO_CONTENT);
    response.flushBuffer();

Maybe you are looking for

  • Files failed to sync

    Just began trying to use the cloud services that come with Adobe Premiere.  Was able to sync some smaller files; a 35MB mp4 file, and a Premiere program file of 70MB.  When I've tried to upload large movie files, it fails to sync after about an hour.

  • How do I get a hidden column to show in a library?

    I am having an odd behavior on one of my site columns, and am hoping someone might be able to shed some light on this for me. I have just built a content type hub. Also created some site columns....I have one particular column (which is a choice type

  • My iTunes on my phone is not working?

    I updated my software on my iPhone 4 and now when I click the iTunes app it loads for a few seconds then exits its self automatically. Has anyone has this problem and is there a way of fixing it? I have turned my phone on and off but dont know what e

  • Rounding Tax amount in row

    Hi Experts, One of our customer wants to round the tax amount in each row of marketing documents. When searched the help of 'Document Settings:General Tab",  we found a setting field for this called 'Round tax amount in rows'. But the same is missing

  • Home page loads fine but all othes pages load in no styleeven through it is set to basic page style

    started today dident load home page right had to reload it sence then the home page has been loading fine all search pages have loaded in no style. i click view, go down to page style it set to basic page style