Displaying HTML file

Hi !
I have created a web application which uses HTML FRAMES, in one frame it displays menu, in another one it displays FORM and once submitted, it fetches data from Database, converts in to XML and then applies XSLT and generates HTML.
my HTML file name is of the form
_htmlFileName = "/Program Files\\VendorDirectory\\Repository\\WebApplication\\Vacation\\dumy.htm"
This file is generated fine after transformation, under specified path.
Now when i use
'response.sendRedirect(_htmlFileName )'
I get page cannot be found error.
Any Clue ? Any help is welcome.
Thanks in advance.

This is because your telling the remote client (the browser looking at the site) to go to that URL.
You would need a http protocol for a client to access the page. Therefore, provided it's under the application context, you would redirect to the directory using a URL rather than a UNC path.
Try:response.sendRedirect(request.getContextPath()+"/dumy.htm");provided your generated file exists in:http://localhost:8080/vacation/dumy.htmlthe remote browser will be redirected to that page.
Anthony

Similar Messages

  • 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 files using ABAP Webdynpro?

    Hi,
    I have a html index file and a bunch of other files accessed by the index file  in a specific directory on the SAP server. I'd like to display the index file via ABAP webdynpro and allow the users to click on what they need to see. How can I achieve this using utilizing the ABAP webdynpro technology ?
    Thanks!

    Hi Thomas,
    Thanks for taking the time to answer my question.
    I have the main html file and all other files needed by the main file in one directory on the application layer of SAP. I'd like to provide the user with a link, by clicking on which they should be able to get to the main html file using the browser. This is just a standalone application.
    I can try the approach using BSPs, however, I'm new to that area. Could you point me in the right direction to get started?

  • How to display HTML file in a region

    I am implementing a portal Application
    in the page group i have 2 regions
    in region1 i have URL item type with URL "http://c:\files\welcome.html"
    How can i set the page such that when the page is browsed the welcome.html
    file will be displayed (browsed)in region2
    regards

    Hi,
    It's quite simple - I will a show a very simple example that will give you an idea :-
    1. Create a simple HTML Page ( I have created Sandeep.html ) & put this HTML code:-
    <HTML>
      <BODY>
         This is my First Test Page. 
    </BODY>
    </HTML>
    2. Copy the file to your $ORACLE_MIDTIER_HOME/Apache/Apache/htdocs
    3. Check if you can access the file :- http://your_server:port/Sandeep.html
        You should see the HTML Page.
    4. Now, login to Portal & create a Page.
    5. Add the HTML Portlet to your Page.
    6. Edit teh HTML Portlet and add this code :-
    <IFRAME SRC="http://your_server:port/Sandeep.html">
    </IFRAME>
    7. That's it ! - the Page Sandeep.html is displayed on the Portal Page itself !
    Regards,
    Sandeep

  • How to display HTML file in forms 6i

    please can any one tell me how i can display normal HTML file in forms 6i
    this HTML file will be called from help menu.
    thanks in advance

    If you're fine with opening html file in a separate browser window, you can use web.show_document.
    But if you have to see html inside Form, one of the solution may be use embeded browser. for detail goto http://forms.pjc.bean.over-blog.com/article-1890238.html

  • How to display HTML file  (on server path) to ADF jspx page ?

    Hi Team,
    We have a requirement to display HTML content which is in tabular format on a page. This page is jspx page based on page template and this html has to be shown on a radio button select. I am trying to do this with Jquery but since the id of all components in jspx comes as pt1:id (pt1 being the id of page template) and : being a special character in Jquery, I am not able to proceed further.
    the syntax of Jquery to load html file a POC has been done outside Jdeveloper is working fine with a general syntax of
    $("#selector".load("html path"));
    Please let me know is they any other solution to load the file?
    Thanks
    Pavan

    For example
    - (void)viewDidLoad {
        [super viewDidLoad];
        NSURL *fileURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"readMe" ofType:@"html"]];
        [infoWebView loadRequest:[NSURLRequest requestWithURL:fileURL]];
    and from the .h
    @property (nonatomic, retain) IBOutlet UIWebView *infoWebView;

  • Need help displaying HTML files stored in content repository

    I have a very simple HTML file stored in a binary attribute (so the file could
    be uploaded through the Admin Portal) named "html" in the BEA Repository (8.1sp2)
    and would like to display it in a JSP. Here's a snippet from that JSP:
    <cm:getNode path="<%=myNodePath%>" id="myNode"/>
    <cm:getProperty node="<%=myNode%>" name="html" conversionType="html"/>
    I expected the getProperty tag to fetch the HTML file and render it inline, but
    I guess that's wishful thinking. Am I missing something?
    Thanks for any help!

    I added transactionTimeout="30" to the tag shown below. That did the trick, as
    long as I avoided certain combinations of tag attributes. Guess this one's a little
    moody.
    Thanks, Greg.
    Gregory Smith <[email protected]> wrote:
    Try setting the transactionTimeout to something greater than 0 on the
    <cm:getProperty> tag.
    Greg
    Marc N wrote:
    I have a very simple HTML file stored in a binary attribute (so thefile could
    be uploaded through the Admin Portal) named "html" in the BEA Repository(8.1sp2)
    and would like to display it in a JSP. Here's a snippet from that JSP:
    <cm:getNode path="<%=myNodePath%>" id="myNode"/>
    <cm:getProperty node="<%=myNode%>" name="html" conversionType="html"/>
    I expected the getProperty tag to fetch the HTML file and render itinline, but
    I guess that's wishful thinking. Am I missing something?
    Thanks for any help!

  • How to display HTML file on iphone app?

    Trying to develop an iphone app that will display an HTML file. All sample code I have found does not display an example
    Any ideas. 

    For example
    - (void)viewDidLoad {
        [super viewDidLoad];
        NSURL *fileURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"readMe" ofType:@"html"]];
        [infoWebView loadRequest:[NSURLRequest requestWithURL:fileURL]];
    and from the .h
    @property (nonatomic, retain) IBOutlet UIWebView *infoWebView;

  • Display html file?

    Hi trying to figure out how to display an HTML file. I am able to display an actual link just fine, but when I try to display an actual file, I get a MalformedURL exception.
    Any suggestions?
    Thank You,
    -Jason
    Edited by: jfitzpat on Dec 3, 2009 7:52 AM

    Sorry...
                    String currentNews = "news0.tpl";
              // News Tab
              JEditorPane htmlPane = new JEditorPane(currentNews);
                    htmlPane.setEditable(false);
              jScrollPane2.setViewportView(htmlPane);Edited by: jfitzpat on Dec 3, 2009 7:56 AM
    Edited by: jfitzpat on Dec 3, 2009 7:58 AM

  • Displaying HTML file using IFrame

    Hi All,
    I have an HTML file in my par file. It is contained as dist\html\test.html. Now I want to display this inside an IFrame. If I try something like
    <iframe id="myIframe" src="html\test.html"  width=100% height=100% frameborder="0"></iframe>
    it fails to load the HTML file. Please let me know how to display this.
    Thanks in advance
    Shubhadip

    Hi George,
    as per your suggestion I have used
    <% String html = componentRequest.getWebResourcePath() + "/html/test.html";%>
    <iframe id="myIframe" src=<%=html %>  width=100% height=100% frameborder="0"></iframe>
    But its not working.. giving the following error:
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : pcd:com.sap.portal.system/temporaryobjects3/9b20d054b8a1ab8c2cd5d105cde1788c/TestDynPage
    Component Name : null
    Page could not create the iView.
    But if I give some web url like yahoo.com it works fine. How to do it then?
    Thanks,
    Shubhadip

  • Iview display HTML file without KM

    Hello All,
    I want to display my HTML files in the Portal but we dont need to have KM, is there any other way we can achieve this.
    Vaib

    Hi Vaib,
    if your HTML should be put into the deployed PAR (which I would expect), include it from there via API, see http://help.sap.com/saphelp_nw04/helpdata/en/2e/61b942dc2eb611e10000000a155106/frameset.htm and http://portal.dk.issworld.com:50000/irj/portalapps/javadocs/runtime/com/sapportals/portal/prt/resource/iresource.html (STATIC_PAGE).
    Hope it helps
    Detlev

  • Call IE to display html file

    Hi folks,
    how to call the IE from standalone application to display a html file?
    any idea or code?
    thank!

    So...to activate a specific browser such IE, one would have to do the following:
    Runtime.getRuntime.exec("\"C:/Program Files/Internet Explorer/IEXPLORE.EXE\" \"file:///C|/PATH/index.htm\"");
    Where the parameter to the Runtime.exec method is simply the command and argument(s) that you would normally have to use at MS-DOS prompt.
    V.V.

  • Since yesterday's (Nov 6th) update, firefox fails to load any sites from web (still displays html files from PC). I tried restore, didn't help.

    I've installed the recommended update yesterday (Nov 6th) but didn't restart Firefox. Since restarting the computer this morning, Firefox has failed to open any website from the web. The connection is ok, explorer loads the sites normally, Firefox opens tabs as normal, it's just that the content of the pages doesn't show up, and after a while we get messages like "connection timed out". HTML files that I have stored on my own hard drive display normally in Firefox.
    I tried "restore Firefox" but it didn't help.

    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls

  • HOW TO DISPLAY HTML FILE

    I'm trying to display a help file created in html when a menu item is clicked.Can someone please help with the code to do that...
    Thanking you in advance...

    jverd wrote:
    DrLaszloJamf wrote:
    jverd wrote:
    Step 1) Learn basic Java syntax.
    Step 2) Learn Swing.
    Step 3) Profit.You forgot the clean underpants!Since when was "clean" a requirement?Since when was Step 2 anything but "?" ?

  • 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.

Maybe you are looking for

  • Export Voice Memos from iPhone 4 to Mac/itunes

    I'm trying to get Voice Memos from my iPhone 4 onto my computer so I can then subsequently put them on my iPhone 6. They didn't sync properly the first time I tried. The apple support told me that I would have to use third party software. Anyone know

  • Stored Scripts are gone after upgrade from 1.5 to 2.0

    Upgraded from 1.5 to 2.0 and there are now problems with the "SQL Scripts" in SQL Workshop: 1. SQL scripts appear to have gone missing - over 200 from one workspace. I checked the WWV_FLOW_FILE_OBJECTS$ table in 2.0 and they are not in there. 2. All

  • Unable to mount samba share file for xbox 360

    I want to be able to stream music from a directory in my arch linux computer (xfce4) to my xbox using samba on a local network using ethernet cables and a router not connected to the internet. I've been able to get samba to startup and I see the fold

  • Safari can't handle PDFs???

    Safari 4.0.5 can't read pdfs... it cannot be configured to open pdfs with Preview. Lemme guess: We can use only Adobe products... Firefox is too slow... Chrome hangs or crashes every few minutes... and now Safari can't handle pdfs. It's useless...

  • The new update for 4s. Has fixed battery life!

    My phone has been on since 4:00am. and it's now 8:00pm. I've used it all day and only a 1/4 of its life