。。求大佬看看,,为啥一直cannot be resolved,,,
下面是我代码:
<%@ page contentType="text/html;charset=GB2312"%>
<%@ page language="java" import="java.sql.*"%>
<jsp:useBean id="SelectNameBean" scope="page"
class="xscj_bean.SQLServerConnBean" />
<html>
<head>
<title>查询结果</title>
</head>
<style type="text/css">
body {
background-image: url(image/5.jpg);
background-size: cover;
}
</style>
<body>
<%
String name = request.getParameter("name");
if (name == null) {
name = "";
}
byte b[] = name.getBytes("ISO-8859-1");
name=new String(b);
String sql="selct*from test where CX='"+name+"'";
SelectNameBean.OpenConn();
ResultSet rs=SelctNameBean.executeQuery(sql);
if(rs.next()==flase)
{
out.println("无该型号车辆,请");
%>
<a href="CPCX.jsp">返回</a>
<%
}
else
{
ReslutSet rsl=SelctNameBean.executeQuery(sql);
%>
<p style="text-align: center;display:block;color:white">
输出车型为<span>%=name%</span>的车辆信息:<br>
</p>
<table
style="border:100px;text-align: center;display:block;color:#ffcccc">
<tr>
<td>车型</td>
<td>价格</td>
</tr>
<%
while(rs.next())
{
%>
<tr>
<td><%=rsl.getString("CX")%></td>
<td><%=rsl.getString("JG")%></td>
</tr>
<%
}
rsl.close();
%>
</table>
<br>
<a href="CPCX.jsp">返回</a>
<%
}
%>
<%
rs.close();
SelectNameBean.closeStmt();
SelectNameBean.closeConn();
%>
</body>
</html>
我这边的报错是:1.SelectNameBean cannot be resolved;
2.flase cannot be resolved to a variable
3.ReslutSet cannot be resolved to a type
。。。查了半天没有结果,, 谢谢大佬解答
<%@ page contentType="text/html;charset=GB2312"%>
<%@ page language="java" import="java.sql.*"%>
<jsp:useBean id="SelectNameBean" scope="page"
class="xscj_bean.SQLServerConnBean" />
<html>
<head>
<title>查询结果</title>
</head>
<style type="text/css">
body {
background-image: url(image/5.jpg);
background-size: cover;
}
</style>
<body>
<%
String name = request.getParameter("name");
if (name == null) {
name = "";
}
byte b[] = name.getBytes("ISO-8859-1");
name=new String(b);
String sql="selct*from test where CX='"+name+"'";
SelectNameBean.OpenConn();
ResultSet rs=SelctNameBean.executeQuery(sql);
if(rs.next()==flase)
{
out.println("无该型号车辆,请");
%>
<a href="CPCX.jsp">返回</a>
<%
}
else
{
ReslutSet rsl=SelctNameBean.executeQuery(sql);
%>
<p style="text-align: center;display:block;color:white">
输出车型为<span>%=name%</span>的车辆信息:<br>
</p>
<table
style="border:100px;text-align: center;display:block;color:#ffcccc">
<tr>
<td>车型</td>
<td>价格</td>
</tr>
<%
while(rs.next())
{
%>
<tr>
<td><%=rsl.getString("CX")%></td>
<td><%=rsl.getString("JG")%></td>
</tr>
<%
}
rsl.close();
%>
</table>
<br>
<a href="CPCX.jsp">返回</a>
<%
}
%>
<%
rs.close();
SelectNameBean.closeStmt();
SelectNameBean.closeConn();
%>
</body>
</html>
我这边的报错是:1.SelectNameBean cannot be resolved;
2.flase cannot be resolved to a variable
3.ReslutSet cannot be resolved to a type
。。。查了半天没有结果,, 谢谢大佬解答

...全文
相关推荐
java eclipse 出现 xxx cannot be resolved to a type 错误解决方法
主要介绍了java eclipse 出现 xxx cannot be resolved to a type 错误解决方法的相关资料,需要的朋友可以参考下
estableRuntimeException cannot be resolved 解决
org.apache.commons.lang.exception.NestableRuntimeException cannot be resolved 解决 替换JAR包即可
导入工程的“The import android cannot be resolved”错误解决方法
导入工程的“The import android cannot be resolved”错误解决方法
详解 问题:HttpServlet cannot be resolved to a type
主要介绍了详解 问题:HttpServlet cannot be resolved to a type的相关资料,需要的朋友可以参考下
The import com.loopj cannot be resolved 的解决方案
cocos The import com.loopj cannot be resolved 是缺失了jar包。导入lib文件夹,或者刷新eclipse就好了。


