Question: . The form in Figure 4 will accept two sentences. When a user click the button Compare, a servlet will process the form. Write a

 . The form in Figure 4 will accept two sentences. When

. The form in Figure 4 will accept two sentences. When a user click the button Compare, a servlet will process the form. Write a servlet code to process the information shown in Figure 4. The serviet should compare the length of the sentences. The serviet should display a page named longer.jsp if Sentence 1 is longer than Sentence 2, otherwise the servlet should display a page named shorter.jsp. If the Sentence I and Sentence 2 have the same length the serviet shall display a page name similar.jsp. Use the HTML information provided in Figure 5 as guide to your implementation. Assume the form shown in Figure 4 is located in a directory named jsp within the WebContent structure in the Eclipse. Put the serviet in a proper package. (10 marks) Sentence Comparison Sentence 1 : Sentence 2: Compare Figure 4: A web page named sentenceinfo.jsp DOCTYPE hat tel cheado eta charsete title final Eram See 1 2020/2021 head 3Sentence Comparisons core actions CorporatorServer" methode post Sentence 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!