Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Warum geht das nicht so??

Empfohlene Antworten

Veröffentlicht

import java.awt.*;

import java.applet.*;

import java.sql.*;

public class Applet1 extends Applet

{

public void paint(Graphics g)

{

try

{

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

}

catch(Exception e)

{

g.drawString("Fehler bei ODBC-JDBC-Bridge!",10,10);

}

Connection dbConn;

Statement sqlstmt;

ResultSet rSet;

try

{

String URL="jdbc :odbc://webserver/workgroup";

dbConn = DriverManager.getConnection(URL,"sa","");

//dbConn.setReadOnly(true);

sqlstmt = dbConn.createStatement();

String strSQL = "Select * from users";

rSet = sqlstmt.executeQuery(strSQL);

}

catch (Exception e)

{

g.drawString("Fehler bei DB Zugriff!",10,30);

return;

}

try

{

while (rSet.next())

{

//g.drawString(rSet.getString(1) + "\n" + getString(2) + "\n", 10,50);

}

sqlstmt.close();

dbConn.close();

}

catch (Exception e)

{

g.drawString("Fehler bei Tabellenabfrage!",10,70);

return;

}

}

} :mad:

[ 30. Mai 2001: Beitrag editiert von: JJKK ]

Hi!

Nun du nutzt ein Applet und Applet dürfen keine Verbindung zu anderen Servern, in diesem Fall zur SQL-DB, aufbauen. Dies kann man mit signierten Applets umgehen.

Schau mal unter

"in 10 Schritten zum signierten Applet", oder bastele

eine Application daraus.

Mmh deine URL für die DB sieht etwas komisch

aus. Probier doch mal jdbc :odbc:NamederDB

Wobei mit NamederDB, der registriete Name der

ODBC-Quelle ist ( Einstellung -> Systemsteuerung -> ODBC-Datenquellen )

doch einfach daraus eine Application

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.