连ODBC数据源不用安装什么驱动,安装JDK默认就有访问用:class.forName("sun.jdbc.odbc.JdbcOdbcDriver")

解决方案 »

  1.   

    可以直接连,因为asp是微软的东西,windows本来就有驱动
    而jsp要下载相应数据库的jdbc驱动,安装后才可以,也可以通过jdbc-odbc连,这样就不用驱动了,不过要系统dns
    第二个问题,可以自己写类,转换<>
    public static String toHTMLString(String in) {
    StringBuffer out = new StringBuffer();
    for (int i = 0; in != null && i < in.length(); i++) {
    char c = in.charAt(i);
    if (c == '\'')
    out.append("&#039;");
    else if (c == '\"')
    out.append("&#034;");
    else if (c == '<')
    out.append("&lt;");
    else if (c == '>')
    out.append("&gt;");
    else if (c == '&')
    out.append("&amp;");
    else if (c == ' ')
    out.append("&nbsp;");
    else if (c == '\n')
    out.append("<br/>");
    else
    out.append(c);
    }
    return out.toString();
    }
      

  2.   

    JDBC驱动怎么安装呢,放在哪里呀
      

  3.   

    每一种数据库的驱动都是不同的,你可以针对具体的数据库安装JDBC驱动。具体的安装方法可以在论坛种找到,你可以搜索一下。