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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:12:59+00:00 2026-06-02T19:12:59+00:00

I am using Ajax in java web application and i want to take the

  • 0

I am using Ajax in java web application and i want to take the value of textfield along with the href link to the next page.

<%@page contentType="text/html" pageEncoding="UTF-8"%>
           <% String root = getServletContext().getContextPath();
           %>
              <table  border="0" id="box-table-b">
                  <thead><tr>
                  <th height="31" colspan="2" nowrap>Enter User Id of Patient </th>
                      </tr></thead>
                <tr>`enter code here`
                  <td width="76" nowrap>UserId</td>
                  <td width="85"  nowrap>
                      <input type="text" name="confuserid" id="confuserid"/>
                 </td>
                </tr>
                <tr>
                <td height="66" colspan="2" align="center" valign="middle" nowrap>            
                <a href="#" onclick="returndisplayData('<%=root%>/confapp.do?method=confapp','entry');"><input type="button" value="Submit"></a>
                  </td>
                </tr>
              </table>
  • 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-02T19:13:01+00:00Added an answer on June 2, 2026 at 7:13 pm

    You could put the control and the link in a form and submit the form via GET, but that will take you away from your ajax.

    Another option would be to simply get the value of the confuserid using jQuery and append it to the URL you are passing to your returndisplayData function.

    something like

    function getMyURL() {
        return '<%=root%>/confapp.do?method=confapp&confuserid='+$("#confuserid").val();
    }
    

    then your link looks like

    <a href="#" onclick="returndisplayData(getMyURL(),'entry');"><input type="button" value="Submit"></a>
    

    Obviously you would need to include jQuery in your page.

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

Sidebar

Related Questions

I have developed an web application using xhtml, jQuery, Ajax, java, Servlets & tomcat
I'm trying to choose an AJAX-friendly Java framework for my first web application and
I am developing a web application on JAVA EE 6 with SEAM 3, using
I have a web application which uses Ajax for several tasks. It has Java
I'm refactoring an existing (Ajax) Java Web application, which currently holds lots of its
I have been developed a web application using java servlet at server side and
I have started using ajax/jQuery in our websites / application. There are many plugins
My java/javascript web application is in development, and I hava a javascript application that
I have a mvc web site that contains one non-mvc page (it is using
We have an ASMX web service which we invoke from our ASP.NET application using

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.