1.html
密码:
2.login.jsp
<%
String name=request.getParameter("name");
String pass = request.getParameter("password");
if(name!=null&&name!=""){
String pass1 = DataSource.selectPass(name);//调用DataSource方法。
if(pass1.equals(pass)){
request.setAttribute("name",name);
request.setAttbitute("password",pass1);
request.getDispacter("/www.vipzg.com",ture);
}
}
%>