0% found this document useful (0 votes)
5 views3 pages

Java Servlet Webpage Design Tasks

The document outlines 6 tasks to design webpages using servlets in Java: 1) take form inputs and concatenate a message, 2) read form inputs and perform a calculation, 3) read form inputs and calculate a total bill, 4) read form data and calculate exam results, 5) read form data and calculate an employee's package, 6) validate a login form.

Uploaded by

losus007
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)
5 views3 pages

Java Servlet Webpage Design Tasks

The document outlines 6 tasks to design webpages using servlets in Java: 1) take form inputs and concatenate a message, 2) read form inputs and perform a calculation, 3) read form inputs and calculate a total bill, 4) read form data and calculate exam results, 5) read form data and calculate an employee's package, 6) validate a login form.

Uploaded by

losus007
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

- by RAGHU SIR [ Sathya Technologies, Ameerpet, Hyderabad]

Task#1 Design Below Webpage

Write a servlet "MessageServlet" with URL pattern "/message" that takes two form inputs and
concatenate into single String. Also append "Welcome to " message and display below.

Task#2 Design Below Webpage

Write a Servlet "CalculateServlet" with URL pattern "/calculate". Read Form inputs and do
calculation based on action submitted.

1|Page
- by RAGHU SIR [ Sathya Technologies, Ameerpet, Hyderabad]

Task#3 Design Below Webpage

Write a Servlet "TotalBillServlet" with URL pattern "/bill". Read Form inputs and do calculation
"Total Bill is : qty*cost".

Task#4 Design Below Webpage


Write a servlet "StudentResultServlet" with URL "/student". Read form data in servlet.
Calculate total marks and percentage.

2|Page
- by RAGHU SIR [ Sathya Technologies, Ameerpet, Hyderabad]

Task#5 Design Below Webpage


Write a servlet "EmployeePackageServlet" with URL "/employee". Read form data in servlet.
Calculate DA, HRA and total package.
DA = 2 % of Basic salary, HRA= 8 % of Basic Salary and Total Package = basic + hra + da.

Task#6 Design Below Webpage


Write a servlet "LoginServlet" with URL "/login". Read form data in servlet.
If username is sathya and password is raghu then display LABEL as SUCCESS else FAIL

3|Page

You might also like