Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 24th, 2005, 12:00 AM
Registered User
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default dynamic upload a combo box from database on select

I have asked this question yesterday..somehow i couldnt get satisfactory answer to that question.

Well, my application is purely web-based..implemented using JSP and html. Database is in oracle . I am using javascripts for front - end validation.

I have 2 combo boxes(or drop down menus). One contains contents of a "product_id" field from "product" database(DATABASES ARE IN ORACLE). WHILE RUNNING THIS APPLICATION ,On selection of one "product_id" from this combo box , i should get the respective "supplier_ids' " from the "supplier" database who provide this "product_id" in another combo box.
Now, using JSP and javascript combination , I
wanted to accomplish this. I am not very experienced in JSP , i am just a starter.


It would really be helpful if anybody gives me a complete code to accomplish this considering a example database.
 
Old April 24th, 2005, 06:06 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

If I understand what you're asking, I think this can be accomplished with client-side JavaScript only. Check out this link: http://www.atgconsulting.com/triplelist.asp

Alternatively, have the first drop-down list automatically submit your page to the server whenever a new item is selected. Then at the server, get the value of the item selected in the drop-down and retrieve the associated data from the database.....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Bend and Break by Keane (Track 3 from the album: Hopes and Fears) What's This?
 
Old June 8th, 2005, 01:26 AM
Registered User
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to williamlcs Send a message via MSN to williamlcs Send a message via Yahoo to williamlcs
Default

hey there, have anyone manage to solve or show the way of doing this ? i m stuck here also. By the way rashmisrao did solve ur problem, if yes pls send me the code to refer. Thanks

 
Old June 28th, 2005, 12:55 PM
Registered User
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can anybody send me the code for dynamically filling up the combo box using jsp and javascript at [email protected]

 
Old February 27th, 2006, 08:41 AM
Registered User
 
Join Date: Feb 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to rohan_s_shetty7
Default

hi rohan here
even i faced the same problem,i am not able to display the content initially,the nesting of boxes workin properly do u have any idea..

Quote:
quote:Originally posted by rashmisrao
 I have asked this question yesterday..somehow i couldnt get satisfactory answer to that question.

Well, my application is purely web-based..implemented using JSP and html. Database is in oracle . I am using javascripts for front - end validation.

I have 2 combo boxes(or drop down menus). One contains contents of a "product_id" field from "product" database(DATABASES ARE IN ORACLE). WHILE RUNNING THIS APPLICATION ,On selection of one "product_id" from this combo box , i should get the respective "supplier_ids' " from the "supplier" database who provide this "product_id" in another combo box.
Now, using JSP and javascript combination , I
wanted to accomplish this. I am not very experienced in JSP , i am just a starter.


It would really be helpful if anybody gives me a complete code to accomplish this considering a example database.





skumarR





Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo box can not work with dynamic Range dahlia492 Excel VBA 1 November 20th, 2006 12:43 PM
Combo box select affecting avail option in another ebburks Access 4 June 3rd, 2006 05:33 PM
Select-As-You-Type Combo box? eruditus Classic ASP Components 0 May 4th, 2006 08:42 AM
Dynamic select box from database values pk_jsp Javascript 1 May 4th, 2005 01:45 AM
Multi Select Combo Box acdsky VB How-To 2 March 1st, 2004 03:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.