代码如下
<%@ page import="com.mysql.jdbc.Driver" %>
<%@ page import="java.sql.*"%>
 <%@ page language = "java"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
 <%
        String username = request.getParameter("username");
        String password = request.getParameter("password");
        
        
        
        %>
        <%
        if (username != null) { //如果用户名不为空,根据它来查试试
            try {
        %>
        <%
                Class.forName("com.mysql.jdbc.Driver");
             Connection    conn = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/t", "root", "1");
               Statement   pstmt = conn.createStatement();
                String sql = "select * from w "+" where w_name='" + username + "'" + " and w_password=‘" + password + "’";//查找username。password对应的数据                // pstmt.setString(1,request.getParameter("w_name"));
                //pstmt.setString(2,request.getParameter("w_password"));
             ResultSet    rs = pstmt.executeQuery(sql);  // 查询
               if(rs.next())                //如果有数据表示可以执行
                {  session.setAttribute( "login" , "ok" ); // 验证通过之后,跳转到后续页面
               session.setAttribute( "w_name" ,username);
        %>
            <jsp:forward page="hst5.jsp">
            <jsp:param name="" value=""/>
            </jsp:forward>
            <%
                }
                else {
            %>
                      <a href="hst1.jsp">账户密码错误,请重新登录</a>           <%
             }            } catch (Exception e) {
                e.printStackTrace();
            }       
        
        }
        %>    </body>
</html>进入页面时是空白的。看源代码的时候。只是body之间是空白的。请问。这个事什么问题啊。