I have to build a jsp page which should display user information like user name, user profession, user address based on user selection.
I have a dropdown list which displays the list of users name like Mike, Tom and so on. If we select Tom from dropdown, we need to display complete information about Tom and if we select Mike then we need to display information about Mike.
My understanding is while loading the page to store all the information about users in a list i.e. list of users
ex: If we store all the information about the users in a variable like usersList
then use this variable to get dropdown values populated i.e. usersList.userName
Now based on the user selected from dropdown, we need to pull that user information from list and display.
Please let me know if I am doing right.
And I am not able to get above instruction working. Please help me with some example.