Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
- <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="i"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- <title>Registro Luz</title>
- <script>
- function enviar(operacion) {
- document.getElementById("accion").value = operacion;
- document.getElementById("formaUsuarios").submit();
- }
- </script>
- </head>
- <body>
- <form action="adminUsuarios.servlet" method="post">
- <center>
- Registro de luz <br> <br> <br>
- Ingrese direccion:
- <input type="text" name="direccion"> <br> <br>
- Ingrese medidor de luz:
- <input type="text" name="medidor"> <br> <br>
- Ingrese fecha de ingreso:
- <input type="text" name="fecha">
- <br>
- <input type="hidden" name="accion" value="guardar">
- <!-- Como la accion ya tiene asignado guardar, no es necesario colocar onclick
- en este botón -->
- <input type="submit" value="Enviar">
- <input type="button" onclick="enviar('eliminar')" value="Eliminar">
- <input type="button" onclick="enviar('modificar')" value="Modificar">
- </center>
- </form>
- <center>
- <br>
- <br> ${mensaje} <br>
- <br>
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement