I have one problem that i dont know anything about Java or JSP or any web technology and my boss has given me this code to use in JSP page and test whether its working or not. I know this will be quite easy for you guys so pls help me out how to use this code and test it ..

Code:
public Connection getCon() throws java.sql.SQLException{
Connection connection = null;
String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
String dburl = "jdbc:microsoft:sqlserver://elogix:1433;DatabaseName=DSI";
String uid="sa";
String pwd="ipnc0176";
try{
Class.forName(driver).newInstance();
}catch(Exception cnfe){
System.out.println("Unable to load Driver class");
throw new SQLException("Unable to Load Driver:"+cnfe.getMessage());
}
try{
System.out.println("Getting connection...");
connection=DriverManager.getConnection(dburl,uid,pwd);
}catch(java.sql.SQLExcetion sqle){
System.out.println("SQL Exception (Connection):");
throw new SQLException("SQL Exception (Connection):"+sqle.getMessage());
}
return connection;
}