import org.apache.commons.lang.ArrayUtils;
List<UserInfo> userInfoList = 从数据库中取数据;
UserInfo[] userInfoArray = userInfoList.toArray(new UserInfo[] {});
for (UserInfo u: userInfoList) {
if (满足条件成立) {
userInfoArray = (UserInfo[]) ArrayUtils.removeElement(userInfoArray, u);
}
}
request.setAttribute("userInfoArray ", userInfoArray);