Tuesday 4 April 2017

Develop a simple JSP program for user registation and then control will be transfer it into second page.

*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






 
 

9 comments:

  1. It's really a piece of new information to me, I learn more from this blog, I want to learn more from this blog, keep on it doing, I eagerly waiting for your updates, thank you!!

    java training institute in delhi

    ReplyDelete
  2. This is really a helpful blog I am really impressed with your work, keep it up the good work
    Oracle Java Certification Practice Exams
    Oracle Java and Dev Tech Certification Practice Exams

    ReplyDelete
  3. 100% Pass Guarantee is offered by us after Certified Cloud Technology Professional C90-02A exam preparation, with Prepare4Test’s exam dumps. You can pass the C90-02A exam in the first go with good marks, and it will be easy for you to attempt all C90-02A questions.

    ReplyDelete
  4. Download the Arcitura Education C90-01A Q&A PDF file easily to prepare Certified Cloud Technology Professional exam. It is particularly designed for Arcitura Education C90-01A exam and our Arcitura Education specialists have created this C90-01A Question Dumps observing the original C90-01A exam.

    ReplyDelete