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="c" %>
- <!DOCTYPE html>
- <html lang="pt-BR">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>Cadastro de Contatos</title>
- </head>
- <body>
- <h2>Cadastrar</h2>
- <form method="POST" action="EnviarDados">
- <label for="nome">Nome: </label>
- <input type="text" id="nome" required name="nome"> <br>
- <label for="email">E-mail: </label>
- <input type="email" id="email" required name="email"> <br>
- <label for="cel">Celular:(ddd) xxxx-xxxx </label> <input type="tel" id="cel" required name="cel" pattern="\([0-9]{2}\)[\s][0-9]{4}-[0-9]{4}">
- <br>
- <label for="states">Estados: </label>
- <select name="states">
- <c:forEach var="listaestados" items="${listaestados}" >
- <option value="${listaestados.uf}">
- <c:out value="${listaestados.uf} - " />
- <c:out value="${listaestados.nomeEstado}" />
- </option>
- </c:forEach>
- </select> <br><br>
- <input type="submit" value="Cadastrar">
- <input type="reset" value="Limpar"> <br>
- </form>
- <br> ${msg}
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement