Connection Database | Data Source | Problem I see a code like this on the Internet:
<% class.forname ("Com.microsoft.jdbc.sqlserver.SQLServerDriver"). newinstance ();
String url= "Jdbc:microsoft:sqlserver://localhost:1433;databasename=shop"; Database name
String user= "SA";
String password= "SA";
Connection conn= drivermanager.getconnection (Url,user,password);
Statement stmt=conn.createstatement (resultset.type_scroll_sensitive,resultset.concur_updatable);
String sql= "SELECT * from UserInfo";
ResultSet rs=stmt.executequery (SQL);
while (Rs.next ())
{%> Your first field content is: <%=rs.getstring (2)%>
The contents of your second field are: <%=rs.getstring (3)%>
<%}%>
<%out.print ("Successful database operation, congratulations");%>
<%rs.close ();
Stmt.close ();
Conn.close (); %> I copied down the database name, and then modified the table name, but under Tomcat browsing times wrong; I am a beginner jsp, please enlighten you!! I wonder if there is no com.microsoft.jdbc.sqlserver.SQLServerDriver drive??