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 278 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
YES! Correct, THANKS for helping me on my review


hollysheppard095

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

 

Did you know?

The ratio of hydrogen atoms to oxygen in water (H2O) is 2:1.

Did you know?

Barbituric acid, the base material of barbiturates, was first synthesized in 1863 by Adolph von Bayer. His company later went on to synthesize aspirin for the first time, and Bayer aspirin is still a popular brand today.

Did you know?

For pediatric patients, intravenous fluids are the most commonly cited products involved in medication errors that are reported to the USP.

Did you know?

Though newer “smart” infusion pumps are increasingly becoming more sophisticated, they cannot prevent all programming and administration errors. Health care professionals that use smart infusion pumps must still practice the rights of medication administration and have other professionals double-check all high-risk infusions.

Did you know?

Astigmatism is the most common vision problem. It may accompany nearsightedness or farsightedness. It is usually caused by an irregularly shaped cornea, but sometimes it is the result of an irregularly shaped lens. Either type can be corrected by eyeglasses, contact lenses, or refractive surgery.

For a complete list of videos, visit our video library