kuroshan1104

consulta01

Jul 16th, 2021 (edited)
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.22 KB | None | 0 0
  1. <%@page import="javax.naming.Context" %>
  2. <%@page import="javax.naming.InitialContext" %>
  3. <%@page import="javax.sql.DataSource" %>
  4. <%@page import="javax.sql.Connection" %>
  5. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  6. <!DOCTYPE html>
  7. <html>
  8.     <head>
  9.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  10.         <title>Consulta Nro 01</title>
  11.     </head>
  12.     <body>
  13.         <h1>Consulta Nr 01</h1>
  14.         <h2>descripciĆ³n de la consulta</h2>
  15.     <%  
  16.        try{
  17.            context micontexto = new InitialContext();
  18.            DataSource mifuentededatos=(DataSource)micontexto.lookup("recurso_conexiones_aplicacion");
  19.            Connection miconexion = mifuentededatos.getConnection();
  20.            if(miconexion==null){
  21.            
  22.        }
  23.            
  24.        }catch(){
  25.        
  26.        
  27.        }
  28.            %>
  29.  
  30.        
  31.         <table border = 1>
  32.             <tr>
  33.                 <td>dato1</td>
  34.                 <td>dato2</td>
  35.                 <td>dato3</td>
  36.                 <td>dato4</td>
  37.                
  38.                
  39.                
  40.                
  41.                
  42.             </tr>
  43.            
  44.            
  45.         </table>
  46.     </body>
  47. </html>
  48.  
Add Comment
Please, Sign In to add comment