How to include other web page in servlet response?

Is there any way how to include the contents from some other web page in my own response? For example, I wish to printout some text and below that to put the complete contents of let's say Google's page, so something like:
include("www.google.com");
...So far I found that I can either redirect to that page and l fully lose the control or include the contents of the other jsp or servlet that I made in the same project. I know I can just send the request to that outside page and read the response and print it out on my page, but the problem is when there is a JavaScript and I can't get the rendered contents but just that script. Also, I will not be able to see the images in that case, so I prefer to give the command to web browser to render and show it for me.
Thanks a lot for any help!

I already tried with streams but then just original source is written, so it means that if it is calling some scripts I will get JavaScript code instead of executed result. I thought I must somehow make the browser to process the page and just display the output because it knows how to deal with scripts.

Similar Messages

  • How to include non web pages to the "Create PDF from Web Page" feature?

    In Acrobat Pro (v. 10), when I use the "Create PDF from Web Page" feature, it works great for html pages, but it skips non-html links (doc, pdf, ppt, xls, etc). I need Acrobat Pro to convert those files and put them in the order as well. I don't see an option for this in settings. Is there ANY way I can do this? This is for an archiving purpose and I have 10,000 plus files to convert. Please help.

    This is a question i'm trying to answer too. My issue is that I have a PDF file which itself contains links to both DOC and PDF files. The end result is that I need one consolidated PDF containing all the linked files (in order).
    I can run the "create from web page" on this PDF file, and it'll download them, but not convert them. It just adds them as "jumbled" text to the end of the document. I need it to download, convert, and then append them.
    So, as isunshine3 asked above, any way to have Adobe convert the files that it finds linked when running the "create from web page"?
    THanks
    Matt

  • How to include other site web page in my application?

    I have a web page lists all payment methods, when user select one of the payment type and then click the submit button, it will re-direct to the third party site for the payment. But I want to have my header in the third party web site, this means that I only change the content in my web site to the other site. How can I do this? I'm using JSF + Tile. Thanks

    I means include the web page which is come from other site in my application body.
    The layout is:
    | my company heading |
    |-------------------------------------|
    | |
    | body(payment web site) |
    | |
    |-------------------------------------|
    | my company footer |
    The customers will feel that they are doing the payment on our site, but actually they pay on the third party site, After payment, redirect back to our web page to show the result.

  • How to include 2 jspx pages in one jspx page and should navigate each other

    Hi,
    How to include 2 jspx pages in one jspx page. When I click on submit button in one page I should able to display those values in another jspx page.
    Plz give me systax or any examples on this requirement.
    Thanks

    I divided one jspx page into 2 parts(Left and Right). In Left side part contain Tree component. Onclick on any node in Tree component, Include another jspx page in Right side. The included jspx contain one submit button. If I click on that button corresponding backing bean is not getting call.
    If I tested with individual pages its working fine. It is getting fail when ever I included jspx page into another.

  • How to insert a Web Page in other Web Page in Web Page Composer

    Hi,
    I´m trying to insert a Web Page in a contaner of other web page in web page composer. I allready allow all web content types that´s make some reference of web pages in properties of my container (page, wpc_page, ...)
    After that i select a web page and drop in my container the page reload but the container still empty :/
    Thanks
    Leo

    No!
    Don't you pay attention to what fruhulda says?
    Peter

  • How to include an ASP page from JSP?

    I had a working ASP page to be repeated on each page of the web site as an navigation bar updated from a single SiteMap.xml. Anyone knew how to include the ASP page from the JSP app?
    Thanks

    You might achieve your desired result by calling the ASP page from your JSP controller (server side) using the standard JAVA HTTP classes you could then process the resulting XML. I suggest you look at the JAVA API for more information in particular the JAVA.NET package and the HTTPUrlConnection class...
    http://java.sun.com/j2se/1.4.2/docs/api/java/net/HttpURLConnection.html
    Hope this helps,
    BRgds,
    Simon

  • How to open a web page in JFrame.

    Please let me know how to open a web page in the Java Frame.

    HTML code can be viewed in any Swing component you want.

  • How to include element on page TOC in dynamic converter

    Hi,
    I am trying to create TOC in dynamic converter, when I open edit template, select element, and properties, check on include in page TOC, Click OK to close properties window, then come back to take look the change, the check is gone. it happens to all the elements. How to include element in page TOC? are there other steps have to be done before elements can be added? Thanks!
    T.J.

    JSP tags don't add html elements. Add the html and body elements as listed:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:pe="http://xmlns.oracle.com/adf/pageeditor"
              xmlns:cust="http://xmlns.oracle.com/adf/faces/customizable">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <html>
      <body>
      <af:pageTemplateDef var="attrs">
        <af:xmlContent>
          <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
            <display-name>sampletemplate</display-name>
            <facet>
              <facet-name>content</facet-name>
            </facet>
            <attribute>
              <attribute-name>hideBreadcrumb</attribute-name>
              <attribute-class>java.lang.Boolean</attribute-class>
              <default-value>#{false}</default-value>
            </attribute>
          </component>
        </af:xmlContent>
       <af:resource type="javascript" source="//scripts/code.js"/>
      </af:pageTemplateDef>
      </body>
    </html>
    </jsp:root>

  • How to forward an applet page to servlet/jsp?

    I have an applet in imageMap.jsp file. This applet displays a map. When user enters the page of imageMap.jsp, they will see the map . If user clicks a point of the map, the latitude and longitude of that point should be sent to Search.java servlet and search results should replace the current page.
    My Search.java servlet works well.
    I think I should add mouse event in the applet. I can use MouseEvent.getX() and MouseEvent.getY() in the applet to get latitude and longitude. But I do not know how to go from this applet to servlet. How can I forward applet page to servlet?

    The <jsp:plugin> action is used in pages to generate client specific HTML tags involving download and execution of the applet that is specified in the tag.

  • Creating Links for other Web pages within Flash C23

    Hello Everyone,
    First of all, I'm sure you're tired of answering the
    questions regarding "Links". Although, I'm having a very
    difficult time with this issue. I just purchased Flash C23,
    taken all the tutorials from www.lynda.com, but
    I do not find answers for linking one web page to another
    within Flash C23. I have read all the answers
    on this forum and still can not get my buttons to link up to
    my other web pages.
    I have figured out how to create the buttons, although, I'm
    not doing something right when I try to link up my web
    pages. You have to realize I'm coming from Adobe Golive (no
    need for codes or scripts). I do not want to stop
    using Flash... Can someone help?
    Thank you so much, it's appreciated.

    replace 'siteName' with whatever you use to target your site
    in a browser. 'FranchelleDesigns' is what you named your page in
    GoLive.
    function loadPage(event:MouseEvent):void{
    var myURL:URLRequest = new URLRequest("
    http://www.siteName.com/FranchelleDesigns.html");
    navigateToURL(myURL,"_blank");
    my_btn.addEventListener(MouseEvent.CLICK, loadPage);
    EX: my website is
    http://www.damonedwards.net
    lets say I create some HTML page that I want to link to, and I save
    it as, ContactMe.html... this is what I would use in flash to link
    to it
    function loadPage(event:MouseEvent):void{
    var myURL:URLRequest = new URLRequest("
    http://www.damonedwards.net/ContactMe.html");
    navigateToURL(myURL,"_blank");
    my_btn.addEventListener(MouseEvent.CLICK, loadPage);

  • Adobe air how do links between web pages

    Hello!
    I try to use adobe air with dreamweaver : The tutorial shows how to package a web page but I can not integrate multiple pages. The html code <a href="page2.html"> test link </ a> is incorrect? Should I add something in the xml file?
    Thanks for help.

    It's just basic page for test :
    <html>
    <head>
    <title>AIRHelloWorld</title>
    <script>
    function init()
    runtime.trace("init function called");
    </script>
    </head>
    <body onload="init()">
    <div align="center">Hello World</div>
    <div><a href="page2.html">test de lien</a></div>
    </body>
    </html>

  • How to prevent duplicate web pages from loading

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/930219]]</blockquote>
    how to prevent duplicate web pages from loading

    <s>Hi berternie, can you describe this in more detail?
    Are you saying the identical page loads in two different tabs? When does that happen -- when you click a link? or when you use a bookmark?
    Or do you have multiple tabs open every time you see your home page (i.e., when you start up, open a new window, or click the home icon)?</s>
    I see, you have more info in this thread: https://support.mozilla.org/en-US/questions/930219

  • How tall is a web page?

    So we're doing pages 900+ pixels wide these days, but I'm wondering how much vertical content we can use before the user has to start scrolling - what he/she first sees when the page loads. Is there a rule of thumb (or mouse finger) for this?

    It's true that you need to make an educated guess about the people who will be viewing the site.
    For instance, if you know for a (relative) fact that they all use 12 inch monitors and IE6, that gives you an idea of what to shoot for.
    If you have a sense that they all have wraparound monitors (surely someone will invent them) that are 36 inches on the diagonal and the latest, greatest Browsers, that tells you something else.
    You can get general statistics about Monitor usage from w3c http://www.w3schools.com/browsers/browsers_display.asp Allowing for a vertical scrollbar and top of the Monitor screen material (toolbars, etc.), you can kind of guess at the actual Viewport sizes.
    If you want to keep people on your page, and not scrolling to kingdom come (how tall is a web page? how high is the sky?), there are strategies:
    Make the header stable and the container below it scrollable within a container so it looks like it's all on the screen...
    Make the page short
    Make the page liquid, so it doesn't hang off the page on small monitors or cower in the corner of larger monitors
    Use Spry Tabbed Panels, or Spry Accordions, or other Spry content techniques
    You can imitate Browser/Monitor Viewport sizes by doing Window > Cascade and adjusting the size of the floating window manually (drag the right bottom corner). The size of the Viewport will show at the right side of the Tag Selector at the bottom of the Document Window (1038 x 628, for instance).
    Beth

  • How to include others jar in my project use netbean

    Hi,
    Here i'm build my project in netbean, in compile source i add jdom.jar. Afer compile, run jar from terminal. But, application can't use and error :
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jpos/
    iso/ISOPackager
    Now, i ask : How to include others lib or jar in my project use netbean
    Rgds,
    Wira S

    Dear All,
    The code In manifest.mf, like :
    Manifest-Version: 1.0
    X-COMMENT: Main-Class will be added automatically by build
    Main-Class: root/Phase3/TesterPhase3/IsolibTester/src/isolibtester/DynamicTreeTester
    Class-Path: root/Phase3/TesterPhase3/jpos/lib/jdom.jar
    When build jar, error :
    error while reading original manifest: error in opening zip file
    Building jar: /root/PHASE3/TesterPhase3/IsolibTester/dist/IsolibTester.jar
    Manifest is invalid: Manifest sections should start with a "Name" attribute and not "Main-Class"
    /root/PHASE3/TesterPhase3/IsolibTester/nbproject/build-impl.xml:273: Invalid Manifest: /root/PHASE3/TesterPhase3/IsolibTester/manifest.mf
    BUILD FAILED (total time: 0 seconds)
    So, i tried add classpath in bash_profile and build.xml, unseccessful
    But, when runing my project from terminal can't found component jdom.jar

  • Upgraded to v6 iphone software, all my contacts have gone, and I can't connect to my email.  Other web pages seem ok.  Help!

    Hi
    Can anyone help me?  Since upgrading to v6 of the iphone software the other day, all my contacts have gone, and I can't connect to orange contacts restore to get them back, or access my email. Other web pages seem ok.
    When I try to connect to the orange backup app, the connection just times out and says connection error.  When I try to access my email it says verify i have put the correct a/c info into mail settings.
    Both things were fine before I updated.
    Help!
    iPhone 4S, iOS 6

    Caroline
    I am having the same problem. Have tried everything I can think of and have bee searcing the community for a solution without any luck. I think I am going to uninstall ios6 if I can figure that out and reinstall.
    Good luck!

Maybe you are looking for

  • Using secatt for testing entire cycle

    How can we use SECATT tool for testing the entire series of transactions to be used in logistics functions? Example : rfq acceptance/rejections purchase order goods receipt invoice verification goods issue inventory posting/stock transfer all in a se

  • G4 and La Clie 120GB - Mystery Memory Hogging File

    I have an iMac G4 running 10.4.11 with an external firewire La Clie 120GB hard drive. The "Get info" says the La Clie is using up 71GB. But if I use the Finder and add up all the folders and only get 25GB used. Which means my HD has a mystery file th

  • Mandatory/Default field for mrp/forecast profile mrp area

    Dear guru, In MM01/MM02 when i create a new mrp area for a material I want Mrp profile field and forecast profile field as mandatory field. Or as alternative solution purposed with a default. How can I do that ?

  • No web cam since windows 8 l505-s5988

    I hope this is the best subforum for this (wasnt sure if this one or windows 8 subforum or another one). I recently bought a really good Satellite l505-s5988 & had to put Windows 8 on it. Everything has seemed to work great except apparently the buil

  • Adobe audition cs  5.5 does not take sound from external mic....

    i have used 3.0 audition but this one doesnt even take sound from any external mic.... it takes sound nnly frm internal mimc of my laptop... kindly advice, how can i make it work for the external microphone