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 329 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
Great answer, keep it coming :)


Kedrick2014

  • Member
  • Posts: 359
Reply 3 on: Yesterday
YES! Correct, THANKS for helping me on my review

 

Did you know?

A headache when you wake up in the morning is indicative of sinusitis. Other symptoms of sinusitis can include fever, weakness, tiredness, a cough that may be more severe at night, and a runny nose or nasal congestion.

Did you know?

Elderly adults are living longer, and causes of death are shifting. At the same time, autopsy rates are at or near their lowest in history.

Did you know?

When taking monoamine oxidase inhibitors, people should avoid a variety of foods, which include alcoholic beverages, bean curd, broad (fava) bean pods, cheese, fish, ginseng, protein extracts, meat, sauerkraut, shrimp paste, soups, and yeast.

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?

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