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

The Archive Base Latest Questions

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

My jsp page <select name=se> <option value=1>D1</option> <option value=2>D2</option> <option value=3>D3</option> </select> While the

  • 0

My jsp page

<select name="se">
  <option value="1">D1</option>
  <option value="2">D2</option>
  <option value="3">D3</option>
</select>

While the user selects D1,then in the same page i want to display the contents from the database.

I want the same for D2,D3.

Where should i write the select query?

  • 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-06T13:17:04+00:00Added an answer on June 6, 2026 at 1:17 pm

    You can use onchange event to make an call to server. On server side you can handle the request and return the required result from database and show it or alternatively you can pre-fetch result from database while calling jsp and just can show/hide onchange event.

    like using jQuery

    <select onchange="$('divId').show()"></select>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<html> <body> <form action=Test1.jsp method=post> <select name=source onchange=> <option value=rss>RSS LINK</option> <option value=other>OTHER LINK</option>
I have a 5 drop-downs in my JSP page <select> <option></option> <option></option> <option></option> <option></option>
Here is the HTML from my .jsp page: <tr> <td><input type=checkbox name=<%=editID%>COM /> </td>
On my JSP page, I defined some javascript with a variable that get value
In my JSP page I am fetching values from a sql statement in a
I want to create a login page using Servlet & JSP. I ve created
I have been facing some serious issues while executing this particular JSP page. CODE
Hello i have a JSP page that contain a form, i want to validate
I have a drop down in a jsp page having the following code <s:select
I am trying to connect to a MySQL database from a jsp page 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.