This topic contains a solution. Click here to go to the answer

Author Question: Suppose the two parameters in the doGet or doPost method are request and response. To retrieve a ... (Read 275 times)

tiara099

  • Hero Member
  • *****
  • Posts: 588

Question 1

Suppose the two parameters in the doGet or doPost method are request and response. To send a cookie to a client, use ________.
◦ request.addCookie(cookie)
◦ response.sendCookie(cookie)
◦ request.sendCookie(cookie)
◦ response.addCookie(cookie)

Question 2

Suppose the two parameters in the doGet or doPost method are request and response. To retrieve a cookie from a client, use ________.
◦ response.getCookie()
◦ You have to use request.getCookie() to obtain a cookie
◦ response.retrieveCookie()
◦ You have to use request.getCookies() to obtain all cookies in an array


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by tiara099 on May 6, 2020

nicoleclaire22

  • Sr. Member
  • ****
  • Posts: 318
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 50% of students answer this correctly




tiara099

  • Member
  • Posts: 588
Reply 2 on: May 6, 2020
Thanks for the timely response, appreciate it


cdmart10

  • Member
  • Posts: 332
Reply 3 on: Yesterday
Excellent

 

Did you know?

In the United States, there is a birth every 8 seconds, according to the U.S. Census Bureau's Population Clock.

Did you know?

Street names for barbiturates include reds, red devils, yellow jackets, blue heavens, Christmas trees, and rainbows. They are commonly referred to as downers.

Did you know?

Throughout history, plants containing cardiac steroids have been used as heart drugs and as poisons (e.g., in arrows used in combat), emetics, and diuretics.

Did you know?

On average, the stomach produces 2 L of hydrochloric acid per day.

Did you know?

As many as 28% of hospitalized patients requiring mechanical ventilators to help them breathe (for more than 48 hours) will develop ventilator-associated pneumonia. Current therapy involves intravenous antibiotics, but new antibiotics that can be inhaled (and more directly treat the infection) are being developed.

For a complete list of videos, visit our video library