hi Suleman,
Hope this helps, look at your code:
String id = rs.getString(1); //gets FirstName
String id = rs.getString(2); //gets LastName
String id = rs.getString(3); //gets UserName
String id = rs.getString(4); //gets Password
String id = rs.getString(5); //gets ??
I think your last line will throw SQLException, but you swallow those (don't do that).
So better remove that line.
Herman
PS Your
servlet is all in one: model, view and controller.
That's usually considered as bad, hard to
test etc.