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 288 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
Wow, this really help


mcabuhat

  • Member
  • Posts: 344
Reply 3 on: Yesterday
Thanks for the timely response, appreciate it

 

Did you know?

The immune system needs 9.5 hours of sleep in total darkness to recharge completely.

Did you know?

Fatal fungal infections may be able to resist newer antifungal drugs. Globally, fungal infections are often fatal due to the lack of access to multiple antifungals, which may be required to be utilized in combination. Single antifungals may not be enough to stop a fungal infection from causing the death of a patient.

Did you know?

Stevens-Johnson syndrome and Toxic Epidermal Necrolysis syndrome are life-threatening reactions that can result in death. Complications include permanent blindness, dry-eye syndrome, lung damage, photophobia, asthma, chronic obstructive pulmonary disease, permanent loss of nail beds, scarring of mucous membranes, arthritis, and chronic fatigue syndrome. Many patients' pores scar shut, causing them to retain heat.

Did you know?

The strongest synthetic topical retinoid drug available, tazarotene, is used to treat sun-damaged skin, acne, and psoriasis.

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.

For a complete list of videos, visit our video library