Hi Jas !
By looking at ur code snippet i feel u should set the UserList object simply like this request.setAttribute("users",UserList);
it is the struts that will find out the users from the available scope u need not mention it explicitly.
and also i observed some flaw in ur
jdbc code which builds the lastname into a arraylist
ArrayList userList = new ArrayList();
while(rs.next())
{
userList.add(user.setLastName(rs.getString(1)));
}
return userList;
In this way u can traverse through the whole resultset
i think u r code does not traverse through the whole resultset