⑴ 怎麼驗證輸入用戶名密碼正確與否 怎麼樣彈出提示框
在 <c:if test="${Err == 1}">
    <script type="text/javascript">
      alert("用戶名不存在,或者密碼不正確");
    </script>
  </c:if>
中是不是${Err == 1}該寫成 ${param.Err eq 1}
因為你是吧Err跟在參數後面的
⑵ 密碼修改中驗證用戶名和密碼是否正確,這個程序怎麼寫
如果是struts2的話,自帶的有個驗證,然後使用this.addActionMessage或者是this.addActionError可以將驗證後的信息傳到頁面上
⑶ 如何判斷用戶所填的用戶名密碼是否正確
import java.sql.*;
public class DataBase{
 String sqlStr;
Connection con;
String str,us,pwd;
public DataBase(String str,String us,String pwd){
 try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
 this.str=str;
 this.us=us;
 this.pwd=pwd;
 }catch(Exception ex){}
}
public boolean open(){
 try{
    if(con==null||con.isClosed())
    con= DriverManager.getConnection("jdbc:odbc:"+str,us,pwd);
   return true;
}catch(Exception ex){
return false;
}
}
public  boolean close(){
 try{
    if(con==null)
     return false;
   con.close();
   return true;
}catch(Exception ex){
    ex.printStackTrace();
    return false;
}
}
public ResultSet select(String sql){
 try{
   Statement st=con.createStatement();
 return st.executeQuery(sql);
}catch(Exception ex){
    ex.printStackTrace();
    return null;
}
}
 public int update(String sql){
 try{
   Statement st=con.createStatement();
 return st.executeUpdate(sql);
}catch(Exception ex){ ex.printStackTrace();return 0;}
 }
}
這是一個連接資料庫的bean
-------------------------------------------- 
public boolean studentLogin(String n,String pass){
        boolean b=false;
        try{
        db.open();
        ResultSet rs=db.select("select * from Student where name='"+n+"' and password='"+pass+"'");
       if(rs.next()){
       System.out.println("Success");
       return true;
       } else{
       System.out.println("Fail");
           return b;
       }
        }catch(Exception e){
            e.printStackTrace();
        db.close();
        }
        return b;
    }
⑷ 如何驗證它是不是正確的windows密碼

3.保存10-20秒,等待指示燈整齊閃爍即可恢復出廠設置;
4.此時打開瀏覽器即可以默認賬戶、密碼登錄。
⑸ 採用javascript技術驗證用戶名和密碼是否正確
用正則表達式吧
<SCRIPT type="text/javascript">
    function checkUserName(userName){
        var reg = /^[a-z\d]{6,12}/; // 小寫字母
        return reg.test(userName);
    }
    function checkPassword(userPassword){
        var reg = /^\d{6}$/; // 數字
        return reg.test(userPassword);
    }
    //alert(checkUserName('adf'));
    //alert(checkPassword('1212122'))
</SCRIPT>
⑹ 網站登錄界面做好了怎麼驗證用戶名和密碼是否正確
有資料庫的或者xml等文件的,你就去訪問那個存用戶名和密碼的那個文件唄,取出來做匹配。
要是你就是玩玩的,這幾頁面存一下這么幾個賬號密碼,做固定的判斷。
⑺ 知道用戶名,域名和,密碼,如何驗證密碼是否正確
用if
Private Sub Command1_Click()
If Text1 = "zu_o" Then
If Text2 = "password" Then
If Text3 = "hp" Then
MsgBox "正確", , "驗證"
Else
MsgBox "錯誤", , "驗證"
End If
Else
MsgBox "錯誤", , "驗證"
End If
End If
If Text1 = "zu_o" Then
Else
MsgBox "錯誤", , "驗證"
End If
End Sub
⑻ 如何判斷輸出的用戶名和密碼是否正確
try { string username = this.txtName.Text; string password = this.txtPass.Text; SqlConnection conn = new SqlConnection(); SqlCommand cmd = new SqlCommand(); conn.ConnectionString = ConfigurationManager.ConnectionStrings["costr"].ConnectionString; cmd.Connection = conn; cmd.CommandText = "select userName,passWord from AdminInfo where userName='" + username + "' and passWord='" + password + "'"; conn.Open(); SqlDataReader dr = cmd.ExecuteReader(); if (dr.Read()) { AdminInfo info = new AdminInfo(); Session["CurrentUser"] = info; //用戶信息存入session // Session["user"] = username; //控制匿名用戶登錄 // FormsAuthentication.SetAuthCookie(username, false); //如果是從其他頁面自動調轉到本頁面,Request["ReturnUrl"]必然有 object oUrlRet = Request["ReturnUrl"]; this.Response.Redirect(oUrlRet == null ? "Index.aspx" : oUrlRet.ToString());//如果一開始就進入login.aspx,成功以後,應該登陸後自動跳到某個頁面,如default.aspx //存入session //跳轉(禁止後退) // Response.Redirect("Index.aspx"); //Response.Write("Successful login!"); //跳轉(可以後退) // Response.Write("<script>window.location.href='Index.aspx';</script>"); // Response.Write("<script>setTimeout("location.href='Login.aspx'",2000)</script>"); //清空緩存用戶信息 //FormsAuthentication.SignOut(); //Request.Cookies.Clear(); //Session.Clear(); } else { this.Label1.Text = "用戶名或者密碼錯誤!"; this.txtName.Text = ""; this.txtPass.Text = ""; this.txtYanzheng.Text = ""; } return; } catch (Exception ex) { throw ex; }
⑼ DOS命令 如何判斷系統用戶名及密碼是否正確
查看當前有多少用戶:netuser
修改當前用戶密碼為123456:netuser%username%123456
清除當前用戶密碼:echo*|netuser%username%*
驗證密碼對不對還真不知道,反正可以自己改
