Fall 2022 - CS506 - 2
Fall 2022 - CS506 - 2
02
Total Marks: 20
Semester: Fall 2022
Compiler Construction CS506 Due Date: 25th Jan, 2023
Instructions:
Please read the following instructions carefully before submitting assignment. It should be clear that
your assignment will not get any credit if:
Objectives:
The objective of this assignment is to provide hands-on experience of Java Programming concepts
including:
Servlet Basics
Process Request
Member Functions and main function
Write the code for two Java Servlets (processRequest() methods only) in such a way that user enter
his/her “bill_amount” and submit the form to the FirstServlet. FirstServlet calculates "tax" on that
amount and forwards the request (using Request Dispatcher method) to SecondServlet that displays
the amount and calculated tax.
Note: No need to write complete code, just write the code in processRequest() method of each
Servlet, as shown below.
Solution Sample:
BEST OF LUCK