Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6321231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:06:50+00:00 2026-05-24T16:06:50+00:00

I would like to include an external website (e.g. www.example.com) in a div in

  • 0

I would like to include an external website (e.g. http://www.example.com) in a div in my jsp page. I don’t want to use frames since it’s not advisable.

I tried searching online for a solution, but all what I found was including an internal webpage (e.g. webpage.jsp)…

I’ll really appreciate your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:06:51+00:00Added an answer on May 24, 2026 at 4:06 pm

    First of all, using frames is indeed not advisable if it concerns dividing/including local content (which is/was the most common abuse of frames). But it is definitely advisable if it concerns external content. For local content you should rather be using server-side includes such as <jsp:include>.

    As to the concrete question, if the HTML response of the external website does not collide with the HTML response of your own JSP page (i.e. it does not return a complete <html> document which would make your final HTML response completely invalid because of duplicate/nested <html> elements, but it returns some context-independent HTML fragment, e.g. <span>blah</span>), then you can use JSTL <c:import> for this.

    <c:import url="http://external.com/some/fragment.html" />
    

    But if it returns a complete <html> document and/or is context-dependent, then you really have to use <iframe> or to bring a proxy servlet in between. For a concrete kickoff example of such a servlet, check this answer: Make HttpURLConnection load web pages with images.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know when I should include external scripts or write them
I would like to develop an external website using Facebook Connect instead of an
Is it possible to load external web-parts in an ASP.NET website? I would like
I have a web page. I would like to include javascript in the webpage
I would like to include external php files into my index.php without using: index.php?p=pagetoinclude.php
I have included external js file using getScript. However, I would like to include
I have an SVG document, and I would like to include an external svg
I would like to publish streams on an external Facebook Connect website. This should
When a user enters a URL, e.g. http://www.google.com , I would like to be
I would like to include a Google map in a Flash site I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.