This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60752
    
  65

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: 60752
    
  65

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
 
Similar Threads
jsp include:
Selecting Combo Box
Grails Enum derived forms
combo boxes and iterator
About combo boxes and refressing data UrlyBird