不行啊,还是那样。 type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: -1 in the jsp file: nullGenerated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] C:\Tomcat\work\Standalone\localhost\_\getpw1_jsp.java:60: 不能解析符号 [javac] 符号:变量 conn1 [javac] 位置:类 in org.apache.jsp.getpw1_jsp [javac] ResultSet rs = conn1.executeQuery(sql); [javac] ^ [javac] 1 个错误
type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: -1 in the jsp file: nullGenerated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] C:\Tomcat\work\Standalone\localhost\_\getpw1_jsp.java:60: 不能解析符号
[javac] 符号:变量 conn1
[javac] 位置:类 in org.apache.jsp.getpw1_jsp
[javac] ResultSet rs = conn1.executeQuery(sql);
[javac] ^
[javac] 1 个错误
ResultSet rs = conn1.executeQuery(sql);
conn1是一个ID值,还用定义么?
我觉得还是我的JAVABEANS执行有问题。
各位大侠帮忙看看。
< jsp:useBean id="conn1" scope="session" class="conn.conn" / >
还不行的话,刷新启动WEB服务器
rs.next();
String wt=rs.getString("pw");