网上的jsp免费空间,怎么连接数据库的?毕竟不可能有对服务器的操作权限 rt.网上的jsp免费空间,怎么连接数据库的?毕竟不可能有对服务器的操作权限也就是说不能有建表之类的操作。可行吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 一般收费的他们提供服务器的操作权限,你免费的有可能是提供Access数据库。 jsp+数据库 好像必须联系空间服务商才能安装论坛之类的。。 连接ACCESS数据库//access driverprivate StringBuffer accessURL=new StringBuffer("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=");private String accessFilePath="";private String accessFileName="";//Method:connect to access filepublic Connection getConnectionToAccess(String fileURL) throws SQLException,ClassNotFoundException{ accessURL.append(fileURL); Class.forName(driver); conn=DriverManager.getConnection(accessURL.toString()); return conn;}<jsp:useBean id="DBConnection" scope="page" class="com.huading.DBConnection"/> Connection conn=DBConnection.getConnectionToAccess(application.getRealPath("/news/date/news.mdb")); Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY); 写了这段代码后还需要建立dsn源吗?? 菜鸟的问题。。。 关于split的数组越界问题以及java.lang.ArrayIndexOutOfBoundsException异常 try行数问题,一个jsp页try内行数过长受限制,如何解决? 请教各位JSP高手,大虾(急) itext2.1.7操作word怎么在一张A4纸并列2个表格 (100)初级问题:如何打包? jbuilder7.0和tomcat4.03调试jsp的问题 jsp文件无法显现! smartupload 使用文档 网站的tomcat的bin目录下,经常被放置了一个陌生的exe文件,怎么办? maven仓库的问题 求一段代码?? JSP如何实现无刷新消息提示框?
//access driver
private StringBuffer accessURL=new StringBuffer("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=");
private String accessFilePath="";
private String accessFileName="";
//Method:connect to access file
public Connection getConnectionToAccess(String fileURL) throws SQLException,ClassNotFoundException
{
accessURL.append(fileURL);
Class.forName(driver);
conn=DriverManager.getConnection(accessURL.toString());
return conn;
}<jsp:useBean id="DBConnection" scope="page" class="com.huading.DBConnection"/>
Connection conn=DBConnection.getConnectionToAccess(application.getRealPath("/news/date/news.mdb"));
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY); 写了这段代码后还需要建立dsn源吗??