Dear Friends, I try to get whole row but I guess it returns just the last row!!! Could you please help me? Thanks, Elahe ------------ rs =stmt.executeQuery("select s.text,b.bugNumber,b.bdesc,b.submittedDate,b.contact,u.name from bug b, user u, statusDesc s where b.ID=s.ID and b.userId=u.userId and s.text='open'");
/* walk the ResultSet and populate the vector with rows of objects */ ResultSetMetaData rsmd = rs.getMetaData();
You create a new instance of your BugList object and store it in the collection using the key "name". Because you keep using the same key you will just store the last object. See Map.put(...) in the JDK JavaDoc. You probably want to do something like