- <%@ page  import="java.io.*,java.util.*,java.net.*,java.sql.*" %> 
-   
- <!DOCTYPE HTML PUBLIC  "-//W3C//DTD HTML 4.01 Transitional//EN"  ""> 
- <% 
- Connection  canal = null; 
- Statement instruccion=null; 
- ResultSet tabla= null; 
- String conexion =  ("jdbc:mysql://localhost/opcodes?user='noteinteresa'&password='noteinteresa'"); 
- //Abrir el enlace 
- try{ 
- Class.forName("com.mysql.jdbc.Driver").newInstance(); 
- canal =  DriverManager.getConnection(conexion); 
- instruccion =  canal.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE); 
- } 
- catch(ClassNotFoundException e){ out.println(e);} 
- catch(SQLException e){ out.println(e);} 
- try{ 
- tabla =  instruccion.executeQuery("SELECT * FROM dictionary"); 
- out.println("<table border=1>"); 
- while(tabla.next()){ 
- out.println(" <tr><td>- "+tabla.getString(1)+" </td><td>- "+tabla.getString(2)+" </td><td>- "+tabla.getString(3)+" </td><td>- "+tabla.getString(4)+" </td></tr>- "); 
- } 
- } 
- catch(Exception e){  out.println(e);} 
- %> 
-