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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:59:25+00:00 2026-06-04T19:59:25+00:00

I am crating one small module in Spring+Hibernate framework. In my jsp page, on

  • 0

I am crating one small module in Spring+Hibernate framework.

In my jsp page, on click event of one dropdown box(values are getting from database) i am setting values of next two input box.eg If suppose i selected country(values are coming from one table say TBL_ABC ) then accordingly my city(values are again coming from same same table TBL_ABC) values should change.

kindly suggest me some good and standard ways to accomplish this .

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-06-04T19:59:28+00:00Added an answer on June 4, 2026 at 7:59 pm

    You need to accomplish this with help of ajax requests. When your jsp gets loaded for the first time, you need to pass the list of countries(name,id) to the jsp and create the dropdown box with these values(you are already doing this). The lable will be the name and value will be the country id(of course).

    Then on click of the dropdown box you can get the selected item value in your javascript function and then call the ajax request mapped to one of the controller methods that will return you the list of cities based on the country id passed. And then fill the list of cities with these values.

    Hope this helps you. Cheers.

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

Sidebar

Related Questions

I got an small problem, I always worked with Hibernate and Spring on Web
I tried creating a small example using Spring, rest, Hibernate. In order to have
I am creating one asp page. In that page i defined one property like
I am creating one application in which i am using jsp/servlet.. I want to
I'm creating one-click python installer (integrated with my application). Is there any way to
I'm trying to write a small Python module which contain some mathematical functions. For
I am new to iphone development.. am creating one small application where two viewcontrollers
I've ran into one small problem. I am dynamically generating some controls and place
I'm creating a small prime number program, and am confused about one thing. I
I have a large web application. One very small piece of this web application

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.