sql cannot be resolved,这个是怎么一回事?是连接数据库的问题吗?刚学呢,求高手啊
org.apache.jasper.JasperException:UnabletocompileclassforJSP:Anerroroccurredatline:33...
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 33 in the jsp file: /reg_check.jsp
sql cannot be resolved
30: }
31: %>
32: <%
33: sql="select *from user_info where UserName='"+username+"'";
34: ResultSet rs=stmt.executeQuery(sql);
35: if (rs.next()){
36: err+="璇ョ敤鎴峰悕宸茬粡瀛桦湪锛岃镟存崲鐢ㄦ埛鍚�<br>";
An error occurred at line: 34 in the jsp file: /reg_check.jsp
stmt cannot be resolved
31: %>
32: <%
33: sql="select *from user_info where UserName='"+username+"'";
34: ResultSet rs=stmt.executeQuery(sql);
35: if (rs.next()){
36: err+="璇ョ敤鎴峰悕宸茬粡瀛桦湪锛岃镟存崲鐢ㄦ埛鍚�<br>";
37: valid=false;
An error occurred at line: 34 in the jsp file: /reg_check.jsp
sql cannot be resolved
31: %>
32: <%
33: sql="select *from user_info where UserName='"+username+"'";
34: ResultSet rs=stmt.executeQuery(sql);
35: if (rs.next()){
36: err+="璇ョ敤鎴峰悕宸茬粡瀛桦湪锛岃镟存崲鐢ㄦ埛鍚�<br>";
37: valid=false; 展开
An error occurred at line: 33 in the jsp file: /reg_check.jsp
sql cannot be resolved
30: }
31: %>
32: <%
33: sql="select *from user_info where UserName='"+username+"'";
34: ResultSet rs=stmt.executeQuery(sql);
35: if (rs.next()){
36: err+="璇ョ敤鎴峰悕宸茬粡瀛桦湪锛岃镟存崲鐢ㄦ埛鍚�<br>";
An error occurred at line: 34 in the jsp file: /reg_check.jsp
stmt cannot be resolved
31: %>
32: <%
33: sql="select *from user_info where UserName='"+username+"'";
34: ResultSet rs=stmt.executeQuery(sql);
35: if (rs.next()){
36: err+="璇ョ敤鎴峰悕宸茬粡瀛桦湪锛岃镟存崲鐢ㄦ埛鍚�<br>";
37: valid=false;
An error occurred at line: 34 in the jsp file: /reg_check.jsp
sql cannot be resolved
31: %>
32: <%
33: sql="select *from user_info where UserName='"+username+"'";
34: ResultSet rs=stmt.executeQuery(sql);
35: if (rs.next()){
36: err+="璇ョ敤鎴峰悕宸茬粡瀛桦湪锛岃镟存崲鐢ㄦ埛鍚�<br>";
37: valid=false; 展开
1个回答
展开全部
更多追问追答
追问
谢谢你的回答,不过数据驱动包我加入项目了,我是数据库是MySQL,环境变量都设置好了,我在那个运行里面测试可以加载类了,不过好像运行是那个数据库加载不了,还有就是经常出现上面的问题,你知道是还有什么原因吗?
追答
你说的数据库加载不了,我觉得有几个可能的原因:1,你的数据库URL可能不对;2,你的数据库连接时的用户名和密码,是否正确;3,你的SQL语句是否正确;你可以在数据库连接的代码处打一个断点,一步一步调试,看到哪一步出问题
TableDI
2024-07-18 广告
2024-07-18 广告
`VLOOKUP` 匹配出错误的数据通常是由于以下几个原因:1. **查找值错误**:输入的查找值与数据源中的值不匹配,可能是因为拼写错误、大小写不一致或存在不可见的字符。2. **查找区域设置错误**:查找区域的首列必须包含要查找的值,且...
点击进入详情页
本回答由TableDI提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询