您现在的位置:计算机技术学习网 > 技术中心 > WEB编程 > JSP >

登陆界面(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]); 
            //说明 
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
用户名: 验证码:点击我更换图片
最新评论 更多>>

推荐热点

  • JSP与Servlet
  • 自己动手写MiniBBS系列(基本篇)之用户登录
  • JSP取当前日期
  • JDBC 入门(一)
  • 打开一个jsp页面默认查询所有数据,调用action
  • 使用JSP标签库验证用户的输入(2)完
  • WIN98/2000下的jsp服务器
  • 自定义JSP标签(tag)浅议
  • Struts学习傻瓜式入门篇
网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
Copyright © 2008-2015 计算机技术学习交流网. 版权所有

豫ICP备11007008号-1