Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page import="java.io.PrintWriter" %>
- <%@ page contentType="text/html;charset=UTF-8" language="java" %>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Registration</title>
- <style>
- a {
- color : #000;
- }
- a:hover {
- text-decoration: none;
- }
- </style>
- </head>
- <body>
- <form action="/pages/registration" method="post">
- Login:<br> <input type="text" name="login">
- <br/>
- Password:<br> <input type="password" name="password"/>
- <br/>
- Confirm password:<br> <input type="password" name="confirmedPassword"/>
- <br/><br>
- <button type="submit" value="Submit">Submit</button>
- </form>
- <%
- if (request.getAttribute("error")!=null) {
- PrintWriter write = response.getWriter();
- write.print("Passwords do not match");
- }
- %>
- <a href = "/pages/index.jsp">Back to home page</a>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement