login.jsp文件里{}没有对应好,仔细查查看

解决方案 »

  1.   

    肯定丢了一个},仔细找找。
    <%-- 对于两次输入的密码进行判断,如果一致,就输出成功显示的信息 --%><%
    if(get_password.equals(get_repassword))
    {
    哈哈,找到了,这个就没有配对的!
      

  2.   

    </table>
        </div>
        <%
      }这个配对
    <%
    if(get_password.equals(get_repassword))
    {了
      

  3.   

    <%--字符串定义--%><%--使用getParameter方法,逐个获取客户端的信息。需要注意的是:引号内的字符大小写时敏感的--%>
    ======================
    这个不是注释,出错了
      

  4.   

    谢谢tangbow了 我刚才也发现了。不过网页现在出来中文乱码  咋整?
      

  5.   

    页面中添加如下代码:
    <%@ page contentType="text/html;charset=gb2312" %>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">或者1.s=new String(s.getBytes(),"iso-8859-1");
    2.s=new String(s.getBytes(),"gb2312");
    3.s=new String(s.getBytes("iso-8859-1"),"gb2312");
    4.s=new String(s.getBytes("gb2312"),"iso-8859-1");
    5.s=new String(s.getBytes("iso-8859-1"));
    6.s=new String(s.getBytes("gb2312"));
    尝试以上的方法之一!