还是不行啊E:\apache_tomcat\Tomcat 4.1\work\Standalone\localhost\_\test\test_db_jsp.java:51: cannot resolve symbol symbol : variable SysProps location: class org.apache.jsp.test_db_jsp SysProps.put("user","tesst"); ^An error occurred at line: 4 in the jsp file: /test/test_db.jspGenerated servlet error: E:\apache_tomcat\Tomcat 4.1\work\Standalone\localhost\_\test\test_db_jsp.java:52: cannot resolve symbol symbol : variable SysProps location: class org.apache.jsp.test_db_jsp SysProps.put("password","test123"); ^An error occurred at line: 4 in the jsp file: /test/test_db.jspGenerated servlet error: E:\apache_tomcat\Tomcat 4.1\work\Standalone\localhost\_\test\test_db_jsp.java:53: cannot resolve symbol symbol : variable SysProps location: class org.apache.jsp.test_db_jsp Connection conn= DriverManager.getConnection(url, SysProps); ^ 3 errors
所以你需要导入这个包。
<%@ page import="java.util.*"%>
加上就可以了。
symbol : variable SysProps
location: class org.apache.jsp.test_db_jsp
SysProps.put("user","tesst");
^An error occurred at line: 4 in the jsp file: /test/test_db.jspGenerated servlet error:
E:\apache_tomcat\Tomcat 4.1\work\Standalone\localhost\_\test\test_db_jsp.java:52: cannot resolve symbol
symbol : variable SysProps
location: class org.apache.jsp.test_db_jsp
SysProps.put("password","test123");
^An error occurred at line: 4 in the jsp file: /test/test_db.jspGenerated servlet error:
E:\apache_tomcat\Tomcat 4.1\work\Standalone\localhost\_\test\test_db_jsp.java:53: cannot resolve symbol
symbol : variable SysProps
location: class org.apache.jsp.test_db_jsp
Connection conn= DriverManager.getConnection(url, SysProps);
^
3 errors