只出现这个........还有一大串英文...不知道是什么意思!!!!!!
root cause
java.lang.ClassNotFoundException: Security Violation, attempt to use Restricted Class: sun.jdbc.odbc.JdbcOdbcDriver
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:123)
我的代码是这样的....
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.io.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="javax.servlet.*"%>
<%@ page import="javax.servlet.http.*"%>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //载入驱动程序类别
Connection conn = DriverManager.getConnection("jdbc:odbc:data");
Statement stmt = conn.createStatement();
String a="索爱";
ResultSet rs=stmt.executeQuery("select * from My_Phone where PhoneClass='" + a +"'");
%>