954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Add values to a combo box dynamically in servlets

how can i add values of each registered name to a combo box in a servlet dynamically and get each values from it ? i have an ArrayList of each registered name.

divsok
Light Poster
27 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

the code so far

HashMap list= (HashMap)getServletContext().getAttribute("NameAndPasswordList");
String name = (String)request.getAttribute("name");
out.print("you are login as "+name+"");

out.print("");
out.print("");

Set names = list.keySet();
ArrayList namelist = null;
for(String addName: names){
namelist.add(addName);
}

divsok
Light Poster
27 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: