Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
| dad2:bbdd [2024/04/09 10:45] – thejuanvisu | dad2:bbdd [2024/04/09 11:09] (actual) – thejuanvisu | ||
|---|---|---|---|
| Línea 25: | Línea 25: | ||
| try{ | try{ | ||
| Connection con = Control.ds.getConnection(); | Connection con = Control.ds.getConnection(); | ||
| - | | + | ps = con.prepareStatement (" |
| + | rs = ps.executeQuery; | ||
| + | |||
| + | Action Accion = null; | ||
| + | this.hashAcciones = new Hashtable< | ||
| + | while(rs.next()){ | ||
| + | accion = (Accion)Class.forName(rs.getString(" | ||
| + | String id = res.getString(" | ||
| + | System.out.println(id + "" | ||
| + | this.hashAcciones.put(id, | ||
| + | } | ||
| + | |||
| + | | ||
| + | System.out.println(" | ||
| + | } catch(InstantActionException e){ | ||
| + | e.printStackTrace(); | ||
| + | } catch(IllegalAccessException e){ | ||
| + | e.printStackTrace(); | ||
| + | } catch(ClassNotFoundException e){ | ||
| + | e.printStackTrace(); | ||
| + | } finally { | ||
| + | try{ | ||
| + | if (rs != null) rs.close(); | ||
| + | if (ps != null) ps.close(); | ||
| + | } catch (SQLException e){ | ||
| + | e.printStackTrace(); | ||
| + | } | ||
| } | } | ||
| + | | ||
| + | System.Out.Println(" | ||
| } | } | ||
| } | } | ||
| + | | ||
| + | | ||
| + | protected void doGet(HttpServletRequest request, httpServlet Response response){ | ||
| + | | ||
| + | } | ||
| + | | ||
| </ | </ | ||
| + | {{drawio> | ||