Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions