display selected option in dropdown
Mkyong.com is providing Java and Spring tutorials and code snippets since 2008. If there is no option in the dropdown box with a value of 'valueX', then the selected option in the dropdown box will not change. I tried your code but it didn't, go through and I wasn't able to assign the selected value into a variable. how to use dropdown list in JSP and display value in same page how to use dropdown list in JSP and display value in same page I... as: Value selected = B Now if choose another option, new message should be printed in the same page Value selected = C How can we do this in a JSP page This can continue for all other drop down also. The options Array. then i re-send both values from 1st and 2nd dropdown lists back to previous page using header(). Step 7: Get and set the select value The reason of this is that Angular uses object identity to select options. How to Style a