aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes problem in getting combo box values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "problem in getting combo box values" Watch "problem in getting combo box values" New topic
Author

problem in getting combo box values

madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
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

Joined: Mar 30, 2010
Posts: 350
any help regarding my post
ravindra patil
Ranch Hand

Joined: Sep 01, 2006
Posts: 230
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

Joined: Mar 30, 2010
Posts: 350
im getting the values from EL..i used bean..here is my bean code...
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
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

Joined: Sep 01, 2006
Posts: 230
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

Joined: Mar 30, 2010
Posts: 350
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

Joined: Mar 30, 2010
Posts: 350
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

Joined: Sep 01, 2006
Posts: 230
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

Joined: Mar 30, 2010
Posts: 350
here is my js code

ravindra patil
Ranch Hand

Joined: Sep 01, 2006
Posts: 230
i Did not see any code calling that js function
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in getting combo box values