- 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