String sql = select * from user where username= + username
+ and password= + userpass + ;
try {
Connection conn = dsgetConnection();
Statement st = conncreateStatement();
ResultSet rs = stexecuteQuery(sql);
while (rsnext()) {
flag = true;
}
} catch (Exception e) {
eprintStackTrace();
}
String actionpath = ;
if (flag) {
requestsetAttribute(username username);
actionpath = success;
} else {
actionpath = error;
}
return actionMappingfindForward(actionpath);
}
}
[] [] [] []