Question: 20 Provide code for JSP pages with the following properties: The first JSP page displays a form where a user can enter a name and

20 Provide code for JSP pages with the following properties: The first JSP page displays a form where a user can enter a name and a color (use a simple text element for both of these). The page! will test whether a cookie named "username" is send by the client and if so, it will use the value of that cookie as the default value of the entry field for the name. The form will use the second JSP page as target using a POST request. The second JSP page will set a cookie called "username" with the value of the passed name parameter. Further, it will display the text "Hello your name you choose the color yourcolor where yourname and yourcolor will be replaced by the received parameters from the first JSP page. . Both servlets are including the resource "banner.html" Total Q2 30
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
