Hi subbaraju,
welcome to TSDN. You can very well do it by getting the value from the controlbox and putting it inside.
The select box (in HTML control) has some properties
(*) selectedIndex -> the index of the item/option presently selected
(*) value -> the value of the item being selected.
Let's say you have a select box which gets rendered like this..
-
<select id="mySelectBox">
-
<option value="v1">ABC</option>
-
<option value="v2">DEF</option>
-
</select>
-
You can make a JavaScript function get executed on changing the value of the select box by calling it in the 'onChange' property. Inside the javascript function, you can get it by accessing
-
var index = document.forms[0].mySelectBox.selectedIndex;
-
var selValue = document.forms[0].mySelectBox.value;
-
Here the index would be '1' and value would be 'v1' if you have chosen the 'ABC' in the list box.
Get the value in a hidden variable and submit it to a page where you can retrieve the value from the 'request' scope.
Hope this helps!