Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2009
    Posts
    88
    Rep Power
    0

    Default Struts 2 combobox data

    How to populate data in to combo box which is dependent on the value of other combo box data ..... plz help me

  2. #2
    FON
    FON is offline Senior Member
    Join Date
    Dec 2009
    Location
    Belgrade, Serbia
    Posts
    368
    Rep Power
    5

    Default

    Pls describe what have you done so far, and where is the exact place where you need help

  3. #3
    Join Date
    Oct 2009
    Posts
    88
    Rep Power
    0

    Default

    Hi fon
    I am doing a project using struts2 frame work, I am using autocompleter combobox provided by dojo plugin struts2 frame work. I am using 2 combo box where second combo box data is depends on selection of first combo box data. How to populate the data into second combo box is my question???

  4. #4
    FON
    FON is offline Senior Member
    Join Date
    Dec 2009
    Location
    Belgrade, Serbia
    Posts
    368
    Rep Power
    5

    Default

    so you want to choose from first one, and each time you select, an async call to server will be performed to obtain matching value for second combo?

    or you will have all data on client after first call and you will perform all your work in script?

  5. #5
    aaruviswa is offline Member
    Join Date
    Dec 2010
    Posts
    9
    Rep Power
    0

    Default

    Retrieve all values by first combobox value ID into ArrayList.Then from action class, iterate each value from ArrayList and put it into a StringBuffer by using coma separated or any synax like:,- etc.Finally this String return to the response.From the response each value put it into an optionbox by using javascript.

    Plz try to implement this...

Similar Threads

  1. Struts: pass data to other form
    By sgoyal in forum Advanced Java
    Replies: 1
    Last Post: 10-01-2009, 06:12 AM
  2. Forwarding data problem with struts.xml
    By Shaolin in forum Web Frameworks
    Replies: 0
    Last Post: 01-08-2009, 06:29 AM
  3. enctype=multipart/form-data with form data in struts
    By vk_satheesh in forum New To Java
    Replies: 0
    Last Post: 09-19-2008, 01:48 PM
  4. Data Leakage in Struts 2
    By arun3m in forum Web Frameworks
    Replies: 0
    Last Post: 07-26-2008, 08:54 PM
  5. Add data to combobox in page load
    By hussainzim in forum JavaServer Pages (JSP) and JSTL
    Replies: 5
    Last Post: 05-15-2008, 01:57 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
  •