struts2+jquery验证注册用户是否存在
2020-12-09 08:57
阅读:952
YPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
标签:struts2+jquery验证注册用户
注册界面 register.jsp
注册界面
action方法
/**
* 查找用户是否存在
*
* @return
* @throws IOException
*/
public String findByName() throws IOException {
List listPerson = ms.findByName(name);
String findByNameTip;
if (listPerson.size() > 0) {
findByNameTip = "exist"; // 存在用户
} else {
findByNameTip = "noexist"; // 不存在用户
}
ServletActionContext.getResponse().getWriter().print(findByNameTip);
return null;
}
struts2+jquery验证注册用户是否存在
标签:struts2+jquery验证注册用户
原文地址:http://blog.csdn.net/adam_wzs/article/details/24666349
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:struts2+jquery验证注册用户是否存在
文章链接:http://soscw.com/index.php/essay/23519.html
文章标题:struts2+jquery验证注册用户是否存在
文章链接:http://soscw.com/index.php/essay/23519.html
评论
亲,登录后才可以留言!