Getting HTML source of current page

Hi All,
I generate an HTML report using an HTML DB application. Through the same application I want to get the source of this HTML page/report & send it as an inline HTML attachment.
Can any body tell me how I can get the HTML source of the current page?
Thanks,
Ayush

Hi
[Follow this |PCD Location of Page Dynamically;
BR
Satish Kumar

Similar Messages

  • How can I get HTML source code of dynamic Web page ?

    Hi,
    I would like to write a program that can get HTML source code of some Web pages, but there are some dynamic Web pages that I can't do it with URL class. For example: http://www.europlex.ch/web/3schedule/showAll.jsp?context=schedule.
    Thank you very much for any solution.

    Thank you for your attention. I'm sorry because I could't describe it clearly. If you don't mind, please follow this step to understand my problem:
    In the browser, enter URL: http://www.europlex.ch/web/main.jsp?locale=_english
    Click on Schedule, you will see the page with Cinema name, Film, Time... I would like to write Java Program to get HTML code of only this Page (Not frame page).
    Do you have any idea ?
    Thanhks,

  • How can we get the source of the page which is loaded on the browser using

    Dear Sir,
    How can we get the source of the page which is loaded on the browser using javascript
    What is the exact path to get the source object in JS?
    thanks & regards,
    Sudheesh - INDIA

    um... the document object?

  • Get HTML source from servlet or strut action

    Hi, need ur help
    I would like to get the HTML source code after calling a URL, for example,
    Suppose a servlet will return a page hello.html, i would like to grap this HTML page source code in my servlet or strut action.
    How can i achieve this?
    Thanks

    This question does not make sense, because the Servlet is the thing that generates the HTML in the first place.
    If you want to view the HTML source of a given web page. Go to 'View'->'Source' in Internet Explorer.

  • HTML Source for Web Page Guest Authentication

    Where is the html source located in the WLC for Guest web authentication page.                  

    If you have 5508 WLC you can download it from here:
    http://www.cisco.com/cisco/software/release.html?mdfid=282600534&release=1.0.2&softwareid=282791507
    If other model, go to cisco download and choose the product to download the software for and from softwares to download for that product choose: Wireless Lan Controller Web Authentication Bundle
    (It is same bundle under all WLCs but you may or may not have permission to download the software depending on what WLC model is listed in your contract).
    HTH
    Amjad
    You want to say "Thank you"? Don't. Just rate the useful answers, that is more useful than "Thank you".

  • How to get the html source for these web page ?

    My code work well for standart page, but I'm unable to get the html source from these page with my vb program :
    http://www.slashdot.org
    http://userfriendly.org
    http://segfault.org
    here my code
    private sub commandgethtml_Click ()
    Inet1.Cancel
    Inet1.Protocol = icHTTP
    Inet1.URL = theURL
    HTMLcode = Inet1.OpenURL(theURL, icString)
    RichTextBox1.Text = HTMLcode
    end sub
    thanks in advance.

    Hello Cyrano,
    This Developer Forum focuses on the National Instruments product "Measurement Studio for Visual Basic" (formerly known as ComponentWorks). Our goal is to help people to better integrate this product into their test, measurement, and automation applications. Your question directly pertains to the Microsoft Internet Transfer Control. I think you would find an increased number of responses that are better focused on your question if you would repost it to a forum that specializes in general VB and internet programming. Good luck!
    Jeremiah Cox
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • I call a class using a Button but i cant get rid of the old page??

    Hey,
    I cant get rid off the current page when i want to go to the next page! this.dispose(); doesnt work because the class doesnt implement ActionListener!! This is the code that i have used:
    JButton back = new JButton("BACK");
            back.addActionListener(new ActionListener()       
                  public void actionPerformed(ActionEvent e)           
                       VowelmSound s = new VowelmSound();
                        s.setSize(Toolkit.getDefaultToolkit().getScreenSize());
                        s.show();
                        //this.dispose();           
             });         });       and this is the code for main
    public static void main(String[] args)
    {JFrame draw = new punjabidraw();   
             draw.setVisible(true);  
    }so was wondering if there was another method i could use to get rid of the old page?? repaint maybe???
    Hope you can help
    Kind Regards
    RSH

    //this.dispose(); 'This' is a nameless ActionListener object. Can't be dispose()ed.
    What do you want to dispose() really?
    And, what is your punjabidraw class?
    Save the currend page reference in a variable called, say, curPage, then do
    curPage.dispose();in the event handler for the button.

  • How to get the source code of an HTML page in Text file Through J2EE

    How to get the source code of an HTML page in Text file Through J2EE?

    Huh? If you want something like your browser's "view source" command, simply use a URLConnection and read in the data from the URL in question. If the HTML page is instead locally on your machine, use a FileInputStream. There's no magic invovled either way.
    - Saish

  • How to get the source code of an HTML page in Text file Through java?

    How to get the source code of an HTML page in Text file Through java?
    I am coding an application.one module of that application is given below:
    The first part of the application is to connect our application to the existing HTML form.
    This module would make a connection with the HTML page. The HTML page contains the coding for the Form with various elements. The form may be a simple form with one or two fields or a complex one like the form for registering for a new Bank Account or new email account.
    The module will first connect through the HTML page and will fetch the HTML code into a Text File so that the code can be further processed.
    Could any body provide coding hint for that

    You're welcome. How about awarding them duke stars?
    edit: cheers!

  • CQ page is not rendering properly. It is not rendering HTML. It is showing HTML source code as is.

    On some of the pages, I am getting this weird behavior wherein page is not rendering properly. It is showing HTML source code as is. Could you please help me out? What could be the issue? And how can we get rid of the same?

    Check your component jsp page. it is possible that it is just plan file without directives <@ or you might have miss to close tag which is creating source as text to render
    Paste your jsp code in case you need further help
    Thanks,
    Ajit

  • "Reload current page/Stop loading current page" seems to be missing from Navigation Bar customization. How do I get it back?

    I am loading Firefox on a new computer, and I can't find the Navigation Bar button for "Reload current page/Stop loading current page". Is there any way to get it back as a choice under Navigation Bar customization or to create a new function? CTRL-R used to work for this function, but I'd like to have the button on the Navigation Bar.

    View Page Source has been moved to the "Web Developer" sub-menu. You can use any of the following to View Page Source:
    *CTRL+U
    *Right-click a blank area of the page and choose "View Page Source"
    *Firefox button > Web Developer > View Page Source
    *Using the Menu Bar: Tools > Web Developer > Page Source
    *ALT+T+W, release ALT key, letter O key
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

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

  • View the html source code of an apex page

    Hi everyone,
    I search to how I can view the html source code of an apex page and to be able to modify it. That's why viewing the html source code from the browser when the application is running doesn't arrange me.
    Has anyone an idea how it can this be possible?
    Best regards,

    Khadija Khalfallah wrote:
    Hi everyone,
    I search to how I can view the html source code of an apex page and to be able to modify it. That's why viewing the html source code from the browser when the application is running doesn't arrange me. What do you mean?
    Do you want to be able to pull up the HTML source generated by Apex, modify that copy, and then feed it back into Apex with the chagnes you made? If so you can't. Apex generates the HTML through its tools and you have to modify the generation routines to get different HTML.
    Do you merely want to look at the generated HTML? In Internet Explorer all you have to do is right click on the page and choose View Source to open a window with the HTML source in an editor. I sometimes find it useful to save a page and manually edit the copy to immediately see the effects of certain changes to the underlying HTML and/or Javascript without permanantly making the change in Apex.

  • HTML source code is rendering instead of web page

    Hi All,
    I have firefox 3.6.13. For some of the pages it is displaying HTML source code as it is without rendering or applying CSS and scripts to display properly designed web page.
    can u tell me if there is setting which causing this issue? but that way, i should have faced for all the pages.
    which all factors can cause this?

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox 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.com/kb/Server+not+found
    *https://support.mozilla.com/kb/Firewalls

  • While accessing lighthammer getting missing HTML Source File error.

    Hi Friends,
    While tryining to logon to Lighthammer I am getting below error:
    (Missing HTML Source File: D:/Lighthammer/Illuminator/Temp/HomePages/admin/HomePage_admin.htm)
    On checking at location D:/Lighthammer/Illuminator/Temp/HomePages/admin I found that folder admin is not available
    and when we restore it from backup it get deleted as soon as we try to logon again.
    This is happening with all other users also. As a workarround we first logon to Lighthammer and when it gives error we paste folder for corresponding user (admin in this case) with home page under D:/Lighthammer/Illuminator/Temp/HomePages then it works.
    We are using MII version 11.5 on windows 2003.
    Please advise. Thanks in advance.
    Regards
    Ajay Sehgal

    Hi Diana,
    Thanks for you Reply.
    I checked directory D:/Inetpub/wwwroot/Illuminator/HomePages and it does not exist.
    But this directory also not exist on any other system including the production systems which are working fine.
    Also checked the permissions and there seems to be no permission issue.
    Regards
    Ajay Sehgal.

Maybe you are looking for