Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Connection conexion = null;
- Statement st = null;
- ResultSet rs = null;
- try {
- Class.forName("com.mysql.jdbc.Driver");
- conexion = DriverManager.getConnection("jdbc:mysql://localhost/desemb", "root", "");
- st = conexion.createStatement();
- st.executeUpdate("insert into desembarcos values (null,'"+anio+"','"+mes+"','"+region+"','"+tonelada +"','"+especie+"')");
- request.getRequestDispatcher("ingresartipo.jsp").forward(request, response);
- conexion.close();
- } catch (Exception e) {
- }
Add Comment
Please, Sign In to add comment