i use this part of code in
Servlet that i wont to make check for user, password and rules and for differеnt rules to go different
JSP but it's not working right.
Iterator <Map.Entry<
String,String>> it = userMap.entrySet().iterator();
int id = 0;
while (it.hasNext()){
Map.Entry<String,String> temp = it.next();
if ((temp.getKey().equals(userRequest)) || (temp.getValue().equals(passwordRequest))) {
if (rules.get(id).equals("admin")) {
request.getRequestDispatcher("Admin.jsp").forward(request, response);
}
id++;
}
Can you give me some help.
Thank you.