Programmer algorithm practice must read, common Java API skills to share>>>
Today to do a joint project, this mistake stuck me all morning
The reason is that the attribute in the request is not judged to be empty, so add
if(request.getParameter("logintype") != null){
That’s it