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

  • SEARCH
  • Home
  • 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 6060083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:47:06+00:00 2026-05-23T08:47:06+00:00

After I made many changes to the HTML document using JSoup so what I

  • 0

After I made many changes to the HTML document using JSoup so what I did is
I have a peocessing page where I fetch the page from the website and insert some tags to the head as follow:

 Document doc = Jsoup.connect(url).get();
 Element head=doc.select("head").first();
  ...etc 

I want to display the document as an HTTP response (what I mean how to display the page in the browser)
I read about JSOUP but I could not find anything related to displaying the HTML document after making some modification!!

please I need help or guide and if my understanding is not good please tell me a good book
to start learning JSoup

  • 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-23T08:47:06+00:00Added an answer on May 23, 2026 at 8:47 am

    Your code doesn’t insert tag. It actually fetches selecting html element by matching the tag.Jsoup is a unidirectional thing.It doesn’t send data to the actul page.

    For better understanding

    see these

    http://jsoup.org/cookbook/extracting-data/example-list-links

    http://desicoding.blogspot.com/2011/03/how-to-parse-html-in-java-jsoup.html

    to show complete page in java see below

    http://forums.devshed.com/java-help-9/display-web-page-in-jpanel-in-applet-504590.html

    To display webpage in android

    webview

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

Sidebar

Related Questions

I made a solution to deploy a custom master page (a WSP file). After
After git init , I added and committed a few files, made some changes,
I am working on a website that displays some data from DB that changes
Is it possible to check if a (MySQL) database exists after having made a
I'm creating a Tic tac toe game, in that after click made by user
I made the mistake of modifying my original source after importing it into subversion.
I made an image to easier explain what Im after: Image Illustration http://bayimg.com/image/eabahaaci.jpg Ive
I've made this snippet that clicks a link after 10th second: function timeout() {
I used made a fft to make a band pass filter. After that I
After reading the Head First Design Patterns book and using a number of other

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.