0% found this document useful (0 votes)
37 views4 pages

20MSIT002 - Chauhan Yashraj B. Assignment-3 JSP

The document describes an assignment to create two JSP pages: 1. Register.jsp takes user input for 8-10 fields and displays the field values on display.jsp. 2. BankApplication.jsp takes a customer ID, checks the customer's balance, and directs them to the appropriate page: UnknownCustomer.jsp if the ID is unknown, NegativeBalance.jsp if they have a negative balance, RegularCustomer.jsp if their balance is below 50,000 INR, or EliteCustomer.jsp if their balance is above 50,000 INR.

Uploaded by

yash gaming
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views4 pages

20MSIT002 - Chauhan Yashraj B. Assignment-3 JSP

The document describes an assignment to create two JSP pages: 1. Register.jsp takes user input for 8-10 fields and displays the field values on display.jsp. 2. BankApplication.jsp takes a customer ID, checks the customer's balance, and directs them to the appropriate page: UnknownCustomer.jsp if the ID is unknown, NegativeBalance.jsp if they have a negative balance, RegularCustomer.jsp if their balance is below 50,000 INR, or EliteCustomer.jsp if their balance is above 50,000 INR.

Uploaded by

yash gaming
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

20MSIT002 – Chauhan Yashraj B.

Assignment-3 JSP

1. Create a register.jsp. Take minimum 8 to 10 fields and display all the fields value on the
next page which is display.jsp .

register.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>

<%

String f=request.getParameter("firstname");

String m=request.getParameter("middlename");

String l=request.getParameter("lastname");

String U=request.getParameter("Username");

String p=request.getParameter("password");

String e=request.getParameter("EmailAddress");

String A=request.getParameter("Address");

out.println("firstname:"+f);
out.println("middlename:"+m);

out.println("lastname:"+l);

out.println("Username:"+U);

out.println("password:"+p);

out.println("EmailAdress:"+e);

out.println("Address:"+A);

%>

</body>

</html>

display.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>

<%

String f=request.getParameter("firstname");
String m=request.getParameter("middlename");

String l=request.getParameter("lastname");

String U=request.getParameter("Username");

String p=request.getParameter("password");

String e=request.getParameter("EmailAddress");

String A=request.getParameter("Address");

out.println("firstname:"+f);

out.println("middlename:"+m);

out.println("lastname:"+l);

out.println("Username:"+U);

out.println("password:"+p);

out.println("EmailAdress:"+e);

out.println("Address:"+A);

%>

</body>

</html>
2. Create a BankApplication, enter the customer ID and based on the balance of the
customer, display the following jsp pages.

a. UnknownCustomer.jsp – when ID of the customer is not known.

b. NegativeBalance.jsp – To the customers who has negative balance.

c. RegularCustomer.jsp – To the customers who has balance less than or equal to


50,000 INR.

d. EliteCustomer.jsp – To the customers who has balance more than 50,000 INR.

You might also like