Vishal Hegde wrote:
The first if statement I am able to get into but its not going within the second if statement, the user name and password is mapped with the type admin but still i am not getting the output "you are logged in as Admin"
That's simple then - whatever rs.getString("type") returns isn't equal to "admin" (case-sensitive). Have you debugged or tried printing out what rs.getString("type") returns?
I am inputting user id and password mapped to the type student..but not sure where it is getting stuck in this case