Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started