Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-09-2009, 10:35 AM
Member
 
Join Date: Mar 2009
Location: new delhi
Posts: 9
Rep Power: 0
Sachin. is on a distinguished road
Question Attaching multiple combo box with each other on d basis of sql 2005.
hello friends ,

i m facing some problem in attaching multiple combo box with each other with the sql 2005 database in servlets.
ok so this is my problem in deatil:-

i just want to take multiple combo box on 1 page nd want to join all the combo box with sql database for data. And on the execution time when ever any user select value in the 1st combo box the value in the 2nd combo box should be automatically comes from sql database on the basis of value of 1st combo box.

and after that on clicking the submit button on the same page , all the selected data from combo boxes should be store in the sql 2005 database.

so friends , i hope u wil understand my problem nd reply me soon.

thank u ........

sachin.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 07-09-2009, 11:05 AM
RamyaSivakanth's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Chennai
Posts: 533
Rep Power: 1
RamyaSivakanth is on a distinguished road
Default
Hi,
Send ur code piece so that we can give suggestions.

-Regards
Ramya
__________________
Ramya
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-09-2009, 11:12 AM
Senior Member
 
Join Date: Dec 2008
Location: Hong Kong
Posts: 473
Rep Power: 2
mtyoung is on a distinguished road
Default
// change of combobox1
make xmlhttprequest by javascript
check the content of page when response come back

// submit
just update the database by form values
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-09-2009, 01:02 PM
Member
 
Join Date: Mar 2009
Location: new delhi
Posts: 9
Rep Power: 0
Sachin. is on a distinguished road
Default
hi,
actually i did'nt write the code about this topic , i just want to think 1st nd than apply the solution regarding this topic.

can you people tell me the way to solve this problem ?
i just want to know the methods which can solve this problem.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 07-09-2009, 01:12 PM
Senior Member
 
Join Date: Dec 2008
Location: Hong Kong
Posts: 473
Rep Power: 2
mtyoung is on a distinguished road
Default
make xmlhttprequest, can access database wont reload the page,
so can use to change content of checkbox2, checkbox3

for update database,
after you submit your form, just update the database by post/get form value in the target servlet
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 07-09-2009, 01:21 PM
Member
 
Join Date: Mar 2009
Location: new delhi
Posts: 9
Rep Power: 0
Sachin. is on a distinguished road
Default
dear mtyoung,
i dont know the javascript. i know little bit servlets and jsp.

so if u give suggestions in these lang. so it wil better for me to understand.
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 07-11-2009, 04:13 AM
Senior Member
 
Join Date: Dec 2008
Location: Hong Kong
Posts: 473
Rep Power: 2
mtyoung is on a distinguished road
Default
sorry, i am not teacher...
would you mind search ajax in google by yourself?

Last edited by mtyoung; 07-11-2009 at 04:19 AM.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
BROWSING and ATTACHING MORE THAN ONE FILES IN JAVA nehaa New To Java 3 01-23-2009 01:11 PM
creation of one combo box form another combo box er.tyagigaurav JavaServer Pages (JSP) and JSTL 0 12-09-2008 04:14 PM
[SOLVED] Attaching a mouseListener to a TreeViewer xcallmejudasx New To Java 1 11-10-2008 08:38 PM
Attaching a drop-down box within a view(not toolbar) xcallmejudasx Eclipse 1 10-28-2008 07:59 PM
Attaching the Java documentation Eranga NetBeans 8 04-10-2008 05:41 AM


All times are GMT +2. The time now is 02:19 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org