<%@ page language= "java" contentType="text/html; charset=UTF-8"%>
Registration interface < ;/html>
/**
* Find if the user exists
*
* @return
* @throws IOException
*/
public String findByName() throws IOException {
List
listPerson = ms.findByName(name);
String findByNameTip;
if (listPerson .size() > 0) {
findByNameTip = "exist"; // User exists
} else {
findByNameTip = "noexist"; // User does not exist
}
ServletActionContext .getResponse().getWriter().print(findByNameTip);
return null;
}