10. Assume that you are developing an application in order to provide online services to the users.
To get the service, first, users have to register themselves. Design a user interface to read email
id, name and date of birth; two buttons, PROCEED and CLEAR. When PROCEED is
clicked, email id, name and date of birth entered should be verified and the user should be 18
years old to get registered. After successful verification, the next page should display the dataentered in the previous page along with a button GET OTP to get the OTP, a text box to type
the displayed OTP and a SUBMIT button. When GET OTP is clicked, the same page should
show the generated OTP. The user has to type the displayed OTP in the text box provided.
After typing the OTP, when SUBMIT button is clicked, the generated OTP and the OTP typed
in the textbox should be compared. Upon successful match, the page should show a message
indicating the success or a suitable failure message otherwise. Include a JSP fragment file to
display the date and time. Date and time should be displayed at the top of the web page. (Hint:
OTP can be generated by using four digit random numbers).
Developed by : Neha, Deepa, Nayana
OUTPUT:
Page 1:
Online Service Portal
Page 2:
Page 3:
Sucessfully Registered to the Online Service Portal on Thu Jan 13 15:27:46 IST 2022
PAGE 1: p10.html
Service Portal
Online Service Portal
PAGE 2: display.jsp
Generate OTP
<%@page import="java.sql.*" %>
<%
String email=request.getParameter("email");
String name=request.getParameter("name");
String dob=request.getParameter("dob");
%>
PAGE 3: sucess.jsp
Sucess
<%@page import="java.util.*"%>
Sucessfully Registered to the Online Service Portal on <%= new
Date().toString()%>