*First
-index.jsp:registation form
-first.jsp: second Control of JSP.
*Code
-index.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<form action="first.jsp" method="post">
Enter your UserName:<input type="text" name="name"><br>
Enter your Password:<input type="password" name="pas"><br>
Enter your email:<input type="email" name="email"><br>
<input type="submit">
</form>
</body>
</html>
-First.jsp
<%--
Document : first.jsp
Created on : Apr 4, 2017, 8:45:35 PM
Author : Queue
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<%
String name=request.getParameter("name");
String password=request.getParameter("pas");
String email=request.getParameter("email");
out.println("You Entered Name :"+name+"<br>");
out.println("You Entered pas :"+password+"<br>");
out.println("You Entered email :"+email+"<br>");
%>
</body>
</html>
-OUTPUT
Thanks ;)
Happy Coding
-index.jsp:registation form
-first.jsp: second Control of JSP.
*Code
-index.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<form action="first.jsp" method="post">
Enter your UserName:<input type="text" name="name"><br>
Enter your Password:<input type="password" name="pas"><br>
Enter your email:<input type="email" name="email"><br>
<input type="submit">
</form>
</body>
</html>
-First.jsp
<%--
Document : first.jsp
Created on : Apr 4, 2017, 8:45:35 PM
Author : Queue
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<%
String name=request.getParameter("name");
String password=request.getParameter("pas");
String email=request.getParameter("email");
out.println("You Entered Name :"+name+"<br>");
out.println("You Entered pas :"+password+"<br>");
out.println("You Entered email :"+email+"<br>");
%>
</body>
</html>
-OUTPUT
Thanks ;)
Happy Coding