登陆界面(jsp)客户端验证(2)
来源:未知 责任编辑:责任编辑 发表时间:2015-01-01 13:16 点击:次
{
list.add(" the password's length must Between6 and 10 !");
}
if (repassword==null||repassword.length()<6||repassword.length()>10)
{
list.add(" the password's length must Between 6 and 10!");
}
if (password!=null&&repassword!=null&&!password.equals(repassword))
{
list.add("the two password isn't the same!");
}
if (list.isEmpty())
{
req.setAttribute("username",username);
req.setAttribute("password",password);
req.setAttribute("repassword",repassword);
req.setAttribute("shuoming",shuoming);//说明
for(int i=0;i<sex.length;i++)//性别
req.setAttribute("sex",sex[i]);
//兴趣
for(int i=0;i<aihao.length;i++)
{
xingqu.add(aihao[i]);
}
req.setAttribute("aihao",xingqu+" ");
//地址
for(int i=0;i<add.length;i++)
req.setAttribute("add",add[i]);
//说明
相关新闻>>
- 发表评论
-
- 最新评论 更多>>