JSP程序问题

来源:百度知道 编辑:UC知道 时间:2024/06/05 11:26:01
一个很基础的问题啊,刚学不大明白
以下的代码出问题了,找不出是那里啊,帮帮忙吧
student.html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>信息输入</title>
</head>
<body>
<form method="POST" action="jav.jsp">
<div align="center">
<table border="1">
<tr>
<td>你的姓名
</td>
<td><input type="text" name="name" size="20">
</td>
</tr>
<tr>
<td>你的id
</td>
<td><input type="text" name="examer_id" size="20">

ResultSet rs = db.getResultSet("select * from exam_examinee where name='"+name+"'(这里应该有个空格)and examer_id='"+examer_id+"'");

看起来是没有问题了
看看环境变量什么设置的有没有问题