<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!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=UTF-8">
<title>User Registration Title</title>
</head>
<body>
	<h3>User Registration</h3>
	<form action="register" method="post">
		<pre>
			<input type="text" name="name" placeholder="Enter your name" required/>
			<input type="text" name="email" placeholder="Enter your email" required/>
			<input type="password" name="password" placeholder="Enter password" required/>
			
			<input type="submit" value="Register"/>
		</pre>
		<%
			String str = (String) request.getAttribute("message");
			if(str!=null){
				out.print(str);
			}
		%>
	</form>
	<a href="/login.jsp">Login</a>
</body>
</html>