*
The moose likes JSP and the fly likes getting values in combobox from database without refreshing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "getting values in combobox from database without refreshing" Watch "getting values in combobox from database without refreshing" New topic
Author

getting values in combobox from database without refreshing

mehta soham
Greenhorn

Joined: May 27, 2009
Posts: 8
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.


Regards,
Dare Devil
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Ajax
mehta soham
Greenhorn

Joined: May 27, 2009
Posts: 8
yes ajax but how we can use it...
if possible please explain or send me demo code
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61606
    
  67

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61606
    
  67

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting values in combobox from database without refreshing