67,538
社区成员
发帖
与我相关
我的任务
分享
adminUser.java
private String name;
private String password;
private String address;
private String telphone;
add.action
List list = userDao.findByCode(actingForm.getAdminUser().getName());
if (list.size() > 0) {
request.setAttribute("message", "用户名已经存在!");
//跳回添加页面
return mapping.findForward("toAdd");
}
add.jsp
<html:text property="adminUser.name" ></html:text>
<html:password value="" property="adminUser.password" ></html:password>
<html:text property="adminUser.address" ></html:text>
<html:text property="adminUser.telphone" ></html:text>