Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in getting combo box values

 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
any help regarding my post
 
ravindra patil
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • Quote
  • Report post to moderator
here is my js code

 
ravindra patil
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i Did not see any code calling that js function
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic