name = rs.getString(2);
quanxian = rs.getString(3);
password = rs.getString(4);
if(name.equals(textname))
{
%> System.out.print(textname);
<%
}
<%
request.setCharacterEncoding("GB2312");
String textname=request.getParameter("name");
String textpassword=request.getParameter("password");
String textquanxian=request.getParameter("quanxian");
%>
从前一页面取到了用户名密码,然后连数据库查询登录信息是否正确,但是if语句不起作用
为什么