Question: Q3: Create a new servlet in http headers package; name your servlet Assessment. Enter the following code in the doGet[ method of your servlet. This
Q3: Create a new servlet in http headers package; name your servlet Assessment. Enter the following code in the doGet[ method of your servlet. This code will generate an excel sheet similar to the one shown in Figure 1. Run your servlet and make sure that the excel sheet is created. Note: ensure that import java.io."; is added to your important statements. response.setcontentType("application/vnd.ms-excel"); PrintWriter out = response.getWriter(); out.println("NameltAssignment (QuizltMidtermltTotal(50)"); out.println("Abdallahlt7 \8\t25\t= SUM (b2:d2 )"); out. println("Mahmood \9\t9\29\t=SM(b3:d3)); Figure 1: Assessement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
