jsp问题
主要代码是<body>
<%
String name=request.getParameter("name");
String password=request.getParameter("password");
String sex=request.getParameter("sex");
boolean flag=false;
%>
<%
final String DRIVER="com.mysql.jdbc.Driver";
final String DBURL="jdbc:mysql://localhost:3306/login";
final String USER = "root";
final String PASSWORD = "root";
Connection con = null;
Statement stmt = null;
ResultSet rs = null;
String sql = null;
%>
<%
try
{
Class.forName("DRIVER");
con = DriverManager.getConnection("DBURL","USER","PASSWORD");
stmt = con.createStatement();
sql="SELECT name from person where name='"+name+"' and password='"+password+"' and sex='"+sex+"'";
rs = stmt.executeQuery(sql);
if(rs.next())
{
flag=true;
}
rs.close();
stmt.close();
con.close();
}
catch(Exception e)
{
}
%>
<%
if(flag)
{
%>
<jsp:forward page="login_success.jsp"/>;
<%
}
else
{
%>
<jsp:forword page="login.jsp"/>
<%
}
%>
</body>
错误提示是
org.apache.jasper.JasperException: /login_config.jsp(2,17) quote symbol expected
这是提示哪行出错了?在线等解答