Results 1 to 7 of 7
  1. #1
    Sachin. is offline Member
    Join Date
    Mar 2009
    Location
    new delhi
    Posts
    9
    Rep Power
    0

    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.

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    841
    Rep Power
    6

    Default

    Hi,
    Send ur code piece so that we can give suggestions.

    -Regards
    Ramya
    Ramya:cool:

  3. #3
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

    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

  4. #4
    Sachin. is offline Member
    Join Date
    Mar 2009
    Location
    new delhi
    Posts
    9
    Rep Power
    0

    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.

  5. #5
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

    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

  6. #6
    Sachin. is offline Member
    Join Date
    Mar 2009
    Location
    new delhi
    Posts
    9
    Rep Power
    0

    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.

  7. #7
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

    Default

    sorry, i am not teacher...
    would you mind search ajax in google by yourself?
    Last edited by mtyoung; 07-11-2009 at 03:19 AM.

Similar Threads

  1. Attaching the Java documentation
    By Eranga in forum NetBeans
    Replies: 11
    Last Post: 08-09-2010, 04:17 AM
  2. Replies: 3
    Last Post: 01-23-2009, 12:11 PM
  3. creation of one combo box form another combo box
    By er.tyagigaurav in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-09-2008, 03:14 PM
  4. [SOLVED] Attaching a mouseListener to a TreeViewer
    By xcallmejudasx in forum New To Java
    Replies: 1
    Last Post: 11-10-2008, 07:38 PM
  5. Attaching a drop-down box within a view(not toolbar)
    By xcallmejudasx in forum Eclipse
    Replies: 1
    Last Post: 10-28-2008, 06:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •