Question: Challenge No: 1 Create a simple servlet application to showcase the lifecycle of a servlet. 1. Add a simple html page to redirect to the
Challenge No: 1 Create a simple servlet application to showcase the lifecycle of a servlet. 1. Add a simple html page to redirect to the servlet 2. On the browser display, Data is available on console. 3. On the console print the entry to each of the lifecycle methods.
Challenge No: 2 Create a simple servlet application to showcase the basic calculator operations using servlet chaining. Create a simple form that collects the following data:
1. Input 1 and Input 2 2. Submit button 3. Collect the entered data from the HTML page to the servlet 4. Configure the web.xml accordingly for servlet 5. Perform addition in ServletAdd and chain it to ServletSub and Chain to ServletMul and Chain to ServletDiv and Chain to DisplayServlet 6. Through DisplayServlet print the result on the browser.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
