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

Author Question: For a HttpSession, say session, how do you get its attribute? (Read 328 times)

james

  • Hero Member
  • *****
  • Posts: 573

Question 1

For a HttpSession, say session, how do you set an attribute pair with name lastName and value Smith?
◦ session.attribute("lastName", "Smith")
◦ session.setAttribute("lastName", "Smith")
◦ session.setValue("lastName", "Smith")
◦ session.value("lastName", "Smith")

Question 2

For a HttpSession, say session, how do you get its attribute?
◦ session.getValue("lastName")
◦ session.value("lastName")
◦ session.getAttribute("lastName")
◦ session.attribute("lastName")


Related Topics

Need homework help now?

Ask unlimited questions for free

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

dlook33

  • Sr. Member
  • ****
  • Posts: 344
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 49% of students answer this correctly




james

  • Member
  • Posts: 573
Reply 2 on: May 6, 2020
Excellent


apple

  • Member
  • Posts: 352
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

Before a vaccine is licensed in the USA, the Food and Drug Administration (FDA) reviews it for safety and effectiveness. The CDC then reviews all studies again, as well as the American Academy of Pediatrics and the American Academy of Family Physicians. Every lot of vaccine is tested before administration to the public, and the FDA regularly inspects vaccine manufacturers' facilities.

Did you know?

Cocaine was isolated in 1860 and first used as a local anesthetic in 1884. Its first clinical use was by Sigmund Freud to wean a patient from morphine addiction. The fictional character Sherlock Holmes was supposed to be addicted to cocaine by injection.

Did you know?

About 80% of major fungal systemic infections are due to Candida albicans. Another form, Candida peritonitis, occurs most often in postoperative patients. A rare disease, Candida meningitis, may follow leukemia, kidney transplant, other immunosuppressed factors, or when suffering from Candida septicemia.

Did you know?

Alzheimer's disease affects only about 10% of people older than 65 years of age. Most forms of decreased mental function and dementia are caused by disuse (letting the mind get lazy).

Did you know?

Approximately one in four people diagnosed with diabetes will develop foot problems. Of these, about one-third will require lower extremity amputation.

For a complete list of videos, visit our video library