Tag servlets

[Solved] Servlet context is not working

Answer Hashtable.contains() Tests if some key maps into the specified value in this hashtable. So, within your Servlet at this line if(!playerList.contains(playerid)) { you’re actually comparing a key (playerid) with all the values (Player objects) in your Hashtable. Hence, the…

[Solved] how to display values in jsp through java class [closed]

i think you should try this public class EmpBean { public java.util.List dataList(){ ArrayList list=new ArrayList(); try{ Class.forName(“driver”); Connection con = DriverManager.getConnection(“url”, “user”, “pwd”); Statement st=con.createStatement(); System.out.println(“hiiiii”); ResultSet rs=st.executeQuery(“select * from employee”); while(rs.next()){ list.add(rs.getString(“name”)); list.add(rs.getString(“address”)); list.add(rs.getString(“contactNo”)); list.add(rs.getString(“email”)); } System.out.println(rs.getString(“contactNo”)); }…