资源简介

Jsp+JavaBean+Servlet+sql2008数据库,绝对正确!运用MyEclipse10.0开发,Tomcat为7.0,低版本的应该也可以支持,但不确定。

资源截图

代码片段和文件信息

package com;
import java.io.UnsupportedEncodingException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;

import com.Student;

public class Datebase {

public static Connection getConnection() {

Connection con = null;
try {
Class.forName(“com.microsoft.sqlserver.jdbc.SQLServerDriver“);
con = DriverManager.getConnection(“jdbc:sqlserver://localhost:1433;DatabaseName=stu“ “sa““123“);
} catch (Exception e) {
e.printStackTrace();

}
return con;
}
public String getCharset(String str) {
String newStr = ““;
try {

newStr = new String(str.getBytes(“ISO-8859-1“) “GB2312“);
} catch (UnsupportedEncodingException e) 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        447  2014-04-24 09:24  Jsp+JavaBean+Servlet(绝对正确)\ding\.classpath

     文件        285  2014-04-24 08:39  Jsp+JavaBean+Servlet(绝对正确)\ding\.mymetadata

     文件       1747  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\.project

     文件        500  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\.settings\.jsdtscope

     文件        395  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\.settings\org.eclipse.jdt.core.prefs

     文件        450  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\.settings\org.eclipse.wst.common.component

     文件        252  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       4821  2014-04-24 09:48  Jsp+JavaBean+Servlet(绝对正确)\ding\src\com\Datebase.java

     文件       1337  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\src\com\Student.java

     文件       1253  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\src\fourServ\delete.java

     文件       2069  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\src\fourServ\insert.java

     文件       1538  2014-04-24 09:26  Jsp+JavaBean+Servlet(绝对正确)\ding\src\fourServ\select.java

     文件       2154  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\src\fourServ\update.java

     文件       2025  2014-04-24 09:59  Jsp+JavaBean+Servlet(绝对正确)\ding\src\fourServ\update1.java

     文件       1165  2014-04-23 21:00  Jsp+JavaBean+Servlet(绝对正确)\ding\src\Serv\xianshiServlet.java

     文件       1074  2014-04-23 21:08  Jsp+JavaBean+Servlet(绝对正确)\ding\WebRoot\a2.jsp

     文件       1310  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\WebRoot\delete2.jsp

     文件       1424  2014-04-24 08:47  Jsp+JavaBean+Servlet(绝对正确)\ding\WebRoot\index.jsp

     文件       2038  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\WebRoot\insert2.jsp

     文件         39  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\WebRoot\meta-INF\MANIFEST.MF

     文件       1349  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\WebRoot\select2.jsp

     文件       2341  2014-04-24 12:52  Jsp+JavaBean+Servlet(绝对正确)\ding\WebRoot\show.jsp

     文件       2149  2014-04-24 10:02  Jsp+JavaBean+Servlet(绝对正确)\ding\WebRoot\show2.jsp

     文件        665  2014-04-21 20:34  Jsp+JavaBean+Servlet(绝对正确)\ding\WebRoot\update2.jsp

     文件       5466  2014-04-24 09:48  Jsp+JavaBean+Servlet(绝对正确)\ding\WebRoot\WEB-INF\classes\com\Datebase.class

     文件       1982  2014-04-24 09:24  Jsp+JavaBean+Servlet(绝对正确)\ding\WebRoot\WEB-INF\classes\com\Student.class

     文件       2421  2014-04-24 09:24  Jsp+JavaBean+Servlet(绝对正确)\ding\WebRoot\WEB-INF\classes\fourServ\delete.class

     文件       2960  2014-04-24 09:24  Jsp+JavaBean+Servlet(绝对正确)\ding\WebRoot\WEB-INF\classes\fourServ\insert.class

............此处省略27个文件信息

评论

共有 条评论