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:57] – thejuanvisu | dad2:bbdd [2024/04/09 11:09] (actual) – thejuanvisu | ||
---|---|---|---|
Línea 29: | Línea 29: | ||
| | ||
Action Accion = null; | Action Accion = null; | ||
- | this.hashAcciones = new Hashtable< | + | 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, | ||
+ | } | ||
| | ||
- | }catch{ | + | }catch(SQLException e){ |
+ | 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> | {{drawio> |