把你的原代码贴出来,大家研究一下!!

解决方案 »

  1.   

    public void init() 
      {
        add(theVisits);
      add(theStatus);
      theVisits.setEditable (false);
      theStatus.setEditable (false);
      openConnection();
      execSQLCommand("SELECT * FROM temp");
      closeConnection();
        }
    public void openConnection()
    {
    theDataSource="jdbc:microsoft:sqlserver://192.168.12.63:1433;DatabaseName=Test";
    theUser="lly";
    thePassword="lly";
    try
    {
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");}
            catch(ClassNotFoundException e){theStatus.setText("Status:OK1");}        try
             {
            theConnection=DriverManager.getConnection(theDataSource,theUser,thePassword);
      

  2.   

    在浏览器里执行,就会出现上面的错
    上面是我的部份源码,是不是我的设置有问题??