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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:49:49+00:00 2026-06-03T13:49:49+00:00

I know it must be simple, but still I am not able to figure

  • 0

I know it must be simple, but still I am not able to figure it out.

I have a link on a jsp page.

When this link is clicked I want another tab (of browser) to open up.

The view of this new page is defined by action class, which needs a form field value.

The problem I am facing is that I can not get the values of form fields to the action class without submitting the form. And submitting the form changes the view of the original jsp as well, which defeats the whole purpose of opening a new tab.

So I need a way to get the form field values to action class without resetting the view of original jsp page.

One way I came across was URL re-writing but that would be my last option.

Please suggest something!!

Thanks!!

  • 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-06-03T13:49:51+00:00Added an answer on June 3, 2026 at 1:49 pm

    Firstly I would like to point out that currently possible (to my knowledge anyway) to force a new tab to appear, it is dependent on the users’ browser and the settings that they have see here for more infomation.

    Now onto your question, since links cannot send form data (on their own) you have 2 options:

    1. You can use a form “submit” button pointing to the URL you want to send the data to and to and add the target=”_blank” to the form which will cause a new page to open up when the form is submitted.
    2. You can add a javascript event to your link so that when it is pressed you append the value of the input to the URL and open a new window with that URL.

    Personally I would choose the first option.

    Here is a simple example of option one which doesn’t remove the input value when you submit…

    <html>
      <body>
        <form action="test1.html" method="post" target="_blank">
          <input type="text" name="bob" />
          <input type="submit" value="Hello"/>
        </form>
      </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there must be a really simple answer to this question, but I
I'm just to figure out what does this method do, I know there must
This must be a relatively newb question but I am still stuck. I know
I know this must be a fairly simple question, but I haven't managed to
I have a secondary phone number that is not always filled out but must
I know this must be a rookie question, but how do i accomplish that?
i know there must be thousands of threads like this, but the internet and
I have installation solution that have installer project (not web installer but simple installer)
I know it must be an easy question. But I couldnt find any solution.
I know it must be obvious but can't find the answer. What should I

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.