• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem in getting combo box values

 
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
in my modify jsp page..im getting values from the existing ones....im getting all the values..the problem with combo box...im using two combo boxes for one label..first combo box contains 2 values..if i select 1st value in 1st combo box it is showing correct value...in other combo box..but if i select 2nd value in 1st combo box..it is showing always the first value of second one..example



in my xml file...for 'Validity' so many values can be taken...eg..'SET_MAX','DEFAULT','ADD_TO_CURRENT'....etc.. here is my code



can anyone help me out..

 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
any help regarding my post
 
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
are you doing it on onClik event i am not seeing any js function onClick just seeing "" there , can you please what you actually want to achieved
 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
im getting the values from EL..i used bean..here is my bean code...
 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
im calling the values in jsp page using bean concept...for first combo it is taking...for second combo it is not taking...
 
ravindra patil
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think , You need to write onClick event there , I dont know what you actually want .

My Assumtopn is if you select first value in first combobox then second commbo box shuld disply first value , if you select 2nd value then value in 2nd also need to be change accordignly
 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what you assumed is right...im showing here my jsp form and what i need is..



the above will be in login.jsp page...if i want to modify...im getting output as

modify.jsp

-------------if in xml file user chosses 'Low Balance' it is getting output as above...its working fine

but the problem with 'Validity' combo..if in xml file user has 'Validity----ADD_TO_CURREENT'

im getting output as



but it is taking as showend above...

i hope you got what im facing the problem
 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i tried again by changing my code...eventhough im getting same problem..can anyone check it and provide me the solution
 
ravindra patil
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I dont know abour EL , but you need to write js function what values is coming then need to set as selected
 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
here is my js code

 
ravindra patil
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i Did not see any code calling that js function
 
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic