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 6046315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:13:31+00:00 2026-05-23T07:13:31+00:00

I have 2 pages written in JSP the first page contains: <%@page contentType=text/html pageEncoding=UTF-8%>

  • 0

I have 2 pages written in JSP the first page contains:

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        <a href="http://www.site.com/page1"> Page1 </a>
        <a href="http://www.site.com/page2"> Page2 </a>
        <a href="http://www.site.com/page3"> Page3 </a>
    </body>
</html>

the second page should take the content of the website specified in the href attribute and
process these content then display the page with my modification ( my modification will be highlight specific words)

First, I do not know how to pass href value from one page to the second page? because I will not use form..

Second, after I pass the value of href (which is website page)How can I get the content of that page ?

Finally, How can I display the page of the website with my modification?

I used JQuery before to highlight specific words in the same document that contains the Jquery script. But when it comes to having just the link and dealing with document that is far from my application I do not know How?

Please help and thanks in advance

  • 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-23T07:13:31+00:00Added an answer on May 23, 2026 at 7:13 am

    First, I do not know how to pass href value from one page to the second page? because I will not use form..

    That will not achieve what you are trying to achieve.

    Assuming that you are doing this without a plugin, what you actually need do is write a relay servlet that will read pages from this other site, insert stuff into them and return the resulting HTML to the user’s browser.

    Then you modify your existing JSP so that the hrefs look something like this:

      href="http://myrelay.com?url=http://www.site.com/page1"
    

    with proper %-escaping added.

    You then need to decide how much massaging of the HTML should be done by the relay servlet itself, and how much should be done by javascript that the relay inserts into the page.


    Warnings:

    1. This is a complicated area. There are all sorts of potential issues with session cookies, internal links, javascript security sand-boxing, browser compatibility issues and so on.

    2. Don’t try to do the work in a JSP.

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

Sidebar

Related Questions

I have jsp file: <%@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8%> <%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core%>
I have written a small JSP page that contains a text box and a
I have written two JSP pages: outerPage.jsp and innerPage.jsp . The outerPage.jsp includes innerPage.jsp
I have written a jsp redirect in my jsp page like this <s:if test=#session.Doctor
I have around ten html pages all have search tab ,only one page is
I have written jsp page in which i create String with gb2312 charset, Then
I have two pages, A and B. I want to echo a variable written
I have written a CMS for a website. You can create pages and do
I have an asp.net web page written in C#. Using some javascript I popup
I have Application written with GWT 1.7. I have one page where I upload

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.