Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting values in combobox from database without refreshing

 
mehta soham
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all...
I'm new to JSP. What i'm trying here is that to retrieve data from oracle database to my jsp combo boxes.
The problem is:

I have 3 combo boxes i.e state,city,locality and these combo boxes are linked with one another. for example: This is how it should happen:selecting STATE...triggers a query and CITY gets it values accordingy. same for CITY & LOCALITY and so on.

stage2:i also want to update my combo box without refreshing my page.I think it is possible by combining javascript and jsp.

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajax
 
mehta soham
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes ajax but how we can use it...
if possible please explain or send me demo code
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64975
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

For more information, please read this.

This post has been moved to a more appropriate forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64975
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, please read this.

And there is no such thing as a "combo box" in HTML. Please use correct terms. Please read this for more information.

Examples of cascading dropdowns are all over the web. Have you done a search?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic